This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Rikky Hasibuan
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • 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




 
Ivan Krizsan
Ranch Hand
Posts: 2198
1
  • Mark post as helpful
  • send pies
  • 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
  • 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
  • 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!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic