Hi All,
I am calling .net web service from
java code (web service client). I'm getting the following error
com.sun.xml.messaging.saaj.soap.ver1_2.Fault1_2Impl checkIfStandardFaultCode
SEVERE: SAAJ0435: {http://www.w3.org/2003/05/soap-envelope}Client is not a standard Code value
When i run the request using soapUI
<
soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope"
xmlns:urn="urn:ihe:qrph:2009" xmlns:urn1="urn:hl7-org:v3"
xmlns:a="http://www.w3.org/2005/08/addressing">
<soap:Header>
<a:Action soap:mustUnderstand="1">urn:ihe:qrph:2009:EmployeeRequestRequest</a:Action>
<a:MessageID>urn:uuid:fb2060ee-555f-4a2c-9851-b6d1c5c5bd79</a:MessageID>
<a:ReplyTo>
<a:Address>
http://www.w3.org/2005/08/addressing/anonymous</a:Address>
</a:ReplyTo>
<a:To soap:mustUnderstand="1">
http://xxxxxxxxxxxxxxxxxxxxxxxxxxx/execute.svc</a:To>
</soap:Header>
<soap:Body>
<urn:EmployeeRequestRequest>
<urn:employee>
<urn:candidateID root="?" extension="?"/>
<urn:name urn1:use="?">
<urn1:prefix qualifier="?">?</urn1:prefix>
<urn1:given qualifier="?">?</urn1:given>
<urn1:family qualifier="?">?</urn1:family>
<urn1:suffix qualifier="?">?</urn1:suffix>
<urn1:delimiter qualifier="?">?</urn1:delimiter>
</urn:name>
<urn:address>
<urn1:city>?</urn1:city>
<urn1:state>?</urn1:state>
<urn1:postalCode>?</urn1:postalCode>
<urn1:country>?</urn1:country>
</urn:address>
<urn:dob value="?"/>
</urn:employee>
</urn:EmployeeRequestRequest>
</soap:Body>
</soap:Envelope>
it gives me the response as
HTTP/1.1 500 Internal Server Error
Date: Tue, 15 Nov 2011 10:14:21 GMT
Server: Microsoft-IIS/6.0
X-Powered-By: ASP.NET
X-AspNet-Version: 2.0.50727
Cache-Control: private
Content-Type: application/soap+xml; charset=utf-8
Content-Length: 424
<s:Envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope" xmlns:a="http://www.w3.org/2005/08/addressing">
<s:Header>
<a:Action s:mustUnderstand="1"/>
<a:RelatesTo>urn:uuid:fb2060ee-555f-4a2c-9851-b6d1c5c5bd79</a:RelatesTo>
</s:Header>
<s:Body>
<s:Fault>
<s:Code>
<s:Value>s:Client</s:Value>
</s:Code>
<s:Reason>
<s:Text xml:lang="en-US">Required Information Missing: 'protocolID'</s:Text>
</s:Reason>
</s:Fault>
</s:Body>
</s:Envelope>
s:Client is creating the problem. Why web service is not giving the proper response?
Any help will be appreciated.
Thanks