SOAP help for PHP-Java -


we working on building web service customer can use. web service works fine when test creating client-program in php. when customer calls service in java using our wsdl, gets 500: internal server error.

noticed that, soap envelope when testing different , when customer testing different. our server program logs show, addfunction() didnt called when customer testing. how solve this.

the soap envelope when testing:

<soap-env:envelope xmlns:soap-env="http://schemas.xmlsoap.org/soap/envelope/"  xmlns:ns1="http://stage.xyz.com/newcode/"><soap-env:body><ns1:updatedelivery><ns1:data>9861164345-98611643451391407829-20140219000000-test one-100003767,9861159602-98611596021391408014-20140219000000-test three- 100003769,9861163442-98611634421391407911-20140219000000-test two-100003768</ns1:data></ns1:updatedelivery></soap-env:body></soap-env:envelope> 

the soap envelope received when customer testing:

<?xml version="1.0" encoding="utf-8"?><s:envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"><s:body><updatedelivery xmlns="http://stage.xyz.com/newcode/"><data>9861164345-98611643451391407829-20140219000000-test one-100003767,9861159602-98611596021391408014-20140219000000-test three-100003769,9861163442-98611634421391407911-20140219000000-test two-100003768</data><hashkey>2604574653</hashkey></updatedelivery></s:body></s:envelope> 

will these different envelopes causing internal server error?

thanks @mujahed syed. installed soapui , tested. noticing, request contains header information along soap envelope. if soap envelope passed request in soapui, service returns result, else returns soapfault. receive request:

--uuid:6035feb3-d1da-4493-b32b-7146115d0327 content-id: <rootpart*6035feb3-d1da-4493-b32b-7146115d0327@example.jaxws.sun.com> content-type: application/xop+xml;charset=utf-8;type="text/xml" content-transfer-encoding: binary  <?xml version="1.0" encoding="utf-8"?><s:envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"><s:body><updatedelivery xmlns="http://ourwebsiteurl"><data>9861164345-98611643451391407829-20140219000000-test one-100003767,9861159602-98611596021391408014-20140219000000-test three-100003769,9861163442-98611634421391407911-20140219000000-test two-100003768</data><hashkey>2604574653</hashkey></updatedelivery></s:body></s:envelope> --uuid:6035feb3-d1da-4493-b32b-7146115d0327--  

this request returns 500 internal error

<faultcode xsi:type="xsd:string">soap-env:client</faultcode>          <faultactor xsi:type="xsd:string"/>          <faultstring xsi:type="xsd:string">error in msg parsing: xml error parsing soap payload on line 1: not well-formed (invalid token)</faultstring>          <detail xsi:type="xsd:string"/> 

if soap envelope given request soapui, returns

<soap-env:envelope soap-env:encodingstyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:soap-env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/xmlschema" xmlns:xsi="http://www.w3.org/2001/xmlschema-instance" xmlns:soap-enc="http://schemas.xmlsoap.org/soap/encoding/">    <soap-env:body>       <ns1:updatedeliveryresponse xmlns:ns1="http://ourwebsiteurl">          <return xsi:type="xsd:string">100|2604574653|</return>       </ns1:updatedeliveryresponse>    </soap-env:body> </soap-env:envelope> 

can receive soap envelope in php , make soapserver call? or going totally wrong in debugging issue. please give inputs. in advance.

http 500 error general , vague, have further investigate issue. can try following steps investigate issue:

thanks.


Comments

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -