View Single Post
  #2 (permalink)  
Old 29-06-2008, 03:45 PM
Buglish Buglish is offline
Junior Member
 

Join Date: Jun 2008
Location: Pretoria, South Africa
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Buglish is on a distinguished road
Send a message via MSN to Buglish Send a message via Yahoo to Buglish Send a message via Skype™ to Buglish
Default Re: SOAP Message Factory response error

After I had placed the post I noticed my response SOAP message format is not the same is the client. I used in both instences the MessageFactory.

On the server side how do I detect the SOAP version?

I had change the instantiation from
Java Code
messageFactory = MessageFactory.newInstance(SOAPConstants.SOAP_1_2_PROTOCOL);
to
Java Code
 messageFactory = MessageFactory.newInstance();
on the server.

Java Code
[Client Request]>POST / HTTP/1.1
Accept: text/xml, text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
Content-Type: text/xml; charset=utf-8
Content-Length: 241
Cache-Control: no-cache
Pragma: no-cache
User-Agent: Java(tm) 2 SDK, Standard Edition v1.6.0_05 Java/1.6.0_05
Host: sjdpprojectserver.hopto.org
Connection: keep-alive

<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"><SOAP-ENV:Body><icb_xml><login><username>rsdth</username><password>sth</password><language>English</language></login></icb_xml></SOAP-ENV:Body></SOAP-ENV:Envelope>

[Server Response]><SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"><SOAP-ENV:Header/><SOAP-ENV:Body><icb_xml><loginResponse><err_code>102</err_code><err_data>Login Failed. Incorrect username or password.</err_data></loginResponse></icb_xml></SOAP-ENV:Body></SOAP-ENV:Envelope>
Unfortunatly this did not resolve the problem as I still receive the above error message

Last edited by Buglish; 12-10-2008 at 09:09 AM.