This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Web Services and the fly likes Error in connection.setCredentials(creds) while get authorization to UDDI Registry Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "Error in connection.setCredentials(creds) while get authorization to UDDI Registry " Watch "Error in connection.setCredentials(creds) while get authorization to UDDI Registry " New topic
Author

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

Rikky Hasibuan
Greenhorn

Joined: May 21, 2009
Posts: 5
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




Ivan Krizsan
Ranch Hand

Joined: Oct 04, 2006
Posts: 2198
    
    1
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

Joined: May 21, 2009
Posts: 5
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

Joined: Oct 04, 2006
Posts: 2198
    
    1
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.
 
subject: Error in connection.setCredentials(creds) while get authorization to UDDI Registry
 
Similar Threads
Unable to publish to IBM test UDDI registry server
problem in publishing web service
Trouble to get simple web service registration code running
Anyone ever seen this before?
unable to run JAXR examples of JWSDP