cancel
Showing results for 
Search instead for 
Did you mean: 

How can I authenticate to a XI server using java via SOAP (SAAJ)

Former Member
0 Kudos

Hi everybody!

I need to connect (SOAP) to a XI server using JAVA

I'm using SAAJ api.The problem is XI server need authentication but I can't found the way to do it! this is a part of code

SOAPConnectionFactory soapConnFactory = SOAPConnectionFactory.newInstance();

SOAPConnection connection = soapConnFactory.createConnection();

URL destination = new URL("https://host:port");

SOAPMessage reply = connection.call(message, destination);

(message is the XML code)

but the application has the following error:

com.sun.xml.messaging.saaj.client.p2p.HttpSOAPConnection post

GRAVE: SAAJ0009: Fallo en el envío del mensaje

I think, maybe is a authentication problem, because the XI server needs it. But I don't have idea how can I send the user and pass

Any IDea???? please

the libraries are ok imported, I use netweaver to develop-

thanks in advantage

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

sorry for wrong inputs...

Message was edited by: siva maranani

MichalKrawczyk
Active Contributor
0 Kudos

hi Leslie,

there are only a few of these errors,

you can try this:

http://www.oxygenxml.com/forum/ftopic1103.html&sid=0abee8c719481a3dd783ff7d5cd84105

are you sure your URL is accessible from your location?

you may also check:

http://www.google.pl/search?hl=pl&q=HttpSOAPConnectionpostSAAJ0009%3A&lr=

Regards,

michal