Re: SOAP adapter returning Worng response

Home Page Forums BizTalk 2004 – BizTalk 2010 SOAP adapter returning Worng response Re: SOAP adapter returning Worng response

#19312

Mike,

The schema that I have corresponds to the message in the envelope body of the First messsage that I have put in my first blog.  What I belive is that Biztalk is unable to remove the SOAP envelope coding from the incoming message and this results in validation failure and hence improper message output.

The response coming back as seen from Fiddler which is also another HTTP debugger tool:-

<?xml version=”1.0″ encoding=”UTF-8″?>
<env:Envelope
xmlns:env=”http://schemas.xmlsoap.org/soap/envelope/&#8221;
xmlns:xsd=”http://www.w3.org/2001/XMLSchema&#8221;
xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance&#8221;
xmlns:enc=”http://schemas.xmlsoap.org/soap/encoding/&#8221;
xmlns:ns0=”http://namespaces.nextance.com/nex/eai”><env:Body><getPartyByKeyResponse
xmlns=”http://namespaces.nextance.com/nex/eai”><status>Completed</status><messageId>nex-eai:ddb4de21-c52c-1004-8099-00065b29ae40</messageId><result><party
docType=”party” objectId=”2040″>
  <sysAudit>
    <createDate>2008-04-03 13:34:20</createDate>
    <createdBy>nextsa</createdBy>
    <updateDate>2008-04-03 13:34:20</updateDate>
    <updatedBy>nextsa</updatedBy>
    <updateCount>0</updateCount>
  </sysAudit>
  <name>IWS-ONE-CREATE-ONE</name>
  <description>IWS-ONE-CREATE-ONE-description</description>

</party></result></getPartyByKeyResponse></env:Body></env:Envelope>

 

Web-Service Schema as Deployed on my machine :-

 

<?xml version=”1.0″ encoding=”UTF-8″?>
<getPartyByKeyResponse
xmlns=”http://namespaces.nextance.com/nex/eai”><status>Completed</status><messageId>nex-eai:ddb4de21-c52c-1004-8099-00065b29ae40</messageId><result><party
docType=”party” objectId=”2040″>
 <name>IWS-ONE-CREATE-ONE</name>
  <description>IWS-ONE-CREATE-ONE-description</description>

</party></result></getPartyByKeyResponse>

 

The response as seen after passing through SOAP adapter in Biztalk:-

 

 <?xml version=”1.0″?>
<GetPartyByKeyResponse
xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance&#8221;
xmlns:xsd=”http://www.w3.org/2001/XMLSchema&#8221;
xmlns=”http://namespaces.nextance.com/nex/eai”&gt;
  <status xmlns=””>Pending</status>
  <result>
    <party docType=”party” objectId=”2040″ />
  </result>
</GetPartyByKeyResponse>

 

 

Do you think that if Biztalk is not able to validate the response coming bac, so it might show the default values for the Status node because the STATUS node is enumerated as PENDING,ERROR,COMPLETED.  I was thinking Biztalk is just picking the PENDING as response since it is the first in the list of enumerations.

 

Another thing to note in the response is that the three fields that Biztalk is picking up (status,docType and objectId) are all attributes and not elements, does that ring a bell.

 

I really appreciate your support on this.  I am just struck in this and need to get the solution to this by Monday Morning.

 

Thanks!
Ashish