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] 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.
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!
Joined: May 21, 2009
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 following code are the detail:
btw, some variables refer to this following code:
Anyhelp will be appreciated....
Joined: Oct 04, 2006
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:
Now you are
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.