• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Error in connection.setCredentials(creds) while get authorization to UDDI Registry

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Dear All,

I use jwsdp-1.5 + Sun GlassFish Enterprise Server 2.1 + Xindice + RegistryServer from wars from jswdp (JAXR Architecture).
When I try to get an authorization from UDDI Registry for creating a new organization by using the following code:



I got error on connection.setCredentials(creds); //line 29
The code above shows this follosing result:

[java] Created connection to registry
[java] Sukses
[java] Got registry service, query manager, and lifecycle manager
[java] May 22, 2009 8:35:17 AM com.sun.xml.messaging.saaj.client.p2p.HttpSOAPConnection post
[java] SEVERE: SAAJ0009: Message send failed
blablba.....bla,,,bla.....

I think the problem on setCredentials method that is used by connection and catch an Exception: Message send failed

I would like to ask you to help me to solve this problem. Thank You for your attention.

Warm Regard




 
Ranch Hand
Posts: 2198
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi!
I don't see immediate problems with the code you enclosed, so I enclose a piece of code that I developed myself that uses JAXR to connect to an UDDI registry. This code has been tested with a jUDDI registry and verified working.

Some instance variable declarations are missing, but I am sure you can figure them out anyway.
Hope it is of any help!
 
Rikky Hasibuan
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Ivan,

I have tried to your the code you are given enclosed.
But it still have an exception. A new one:

Invalid Content-Type. Could be an error message instead of a SOAP message


This exception was thrown,still, when I called
the mConnection.setCredentials(theConnectionCredentials);

The following code are the detail:


btw, some variables refer to this following code:



Anyhelp will be appreciated....

WR
 
Ivan Krizsan
Ranch Hand
Posts: 2198
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi!
Finally I managed to install and configure jUDDI again...
Your program runs without problem, once I configured jUDDI properly. Here is the output I get:

Sukses
Now you are
Here2
Contact with registry established, capability level: 0, JAXR version: JAXR Version 1.0


From this I draw the conclusion that your registry is not properly configured. I had some problems with jUDDI not being properly set up and it resulted in me not being able to connect to it with no proper reason for the problem being conveyed by the error messages.
I don't know anything about the registry you use, but at least I can confirm that your program is OK.
Best wishes!
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic