0 Replies Latest reply on Mar 17, 2009 8:37 AM by ToniLuque

    Flex is transforming my XML request for a Web Service !!

      Hi all,

      I am having an issue with the Flex Builder 3.0 when invoking a Web Service. I have tested the invocation with other tools and it is running fine, but curiously, Flex is transforming the xml request for a Web Service Operation in another (problems of namespaces)

      I paste the XML that I use to invoke in the Flex code, and what arrives to the Server Side.

      XML from Flex Code:

      <yq1:PatientEncounterCHNByIDQueryResponse_In xmlns:yq1=" http://www.sap.com/caf/demo.sap.com/cewebservices/modeled">
      <PatientEncounterCHNByIDQuery_sync xmlns:pns=" http://sap.com/xi/IS-CHN">
      <yq2:MessageHeader xmlns:yq2=" http://sap.com/xi/IS-CHN" xmlns:pns=" http://sap.com/xi/IS-CHN/Global">
      <pns:CreationDateTime>2009-03-16T16:08:46.262+01:00</pns:CreationDateTime>
      <pns:SenderParty>
      <pns:InternalID>
      <pns:simpleContent>.174</pns:simpleContent>
      <pns:schemeID>2.16.840.1.113883.4.292</pns:schemeID>
      </pns:InternalID>
      <pns:ContactPerson>
      <pns:InternalID>
      <pns:simpleContent>987654321</pns:simpleContent>
      <pns:schemeID>2.16.840.1.113883.4.292.174</pns:schemeID>
      </pns:InternalID>
      </pns:ContactPerson>
      </pns:SenderParty>
      <pns:RecipientParty>
      <pns:InternalID>
      <pns:simpleContent>.00</pns:simpleContent>
      <pns:schemeID>2.16.840.1.113883.4.292</pns:schemeID>
      </pns:InternalID>
      </pns:RecipientParty>
      <pns:BusinessScope>
      <pns:TypeCode>
      <pns:simpleContent>1</pns:simpleContent>
      </pns:TypeCode>
      <pns:InstanceID>
      <pns:simpleContent>CAF Testing</pns:simpleContent>
      </pns:InstanceID>
      </pns:BusinessScope>
      </yq2:MessageHeader>
      <pns:PatientEncounter>
      <yq3:ID xmlns:yq3=" http://sap.com/xi/IS-CHN" xmlns:pns=" http://sap.com/xi/IS-CHN/Global">
      <pns:simpleContent>000000000000012</pns:simpleContent>
      </yq3:ID>
      <pns:InternalID>HCB-ENC-0012</pns:InternalID>
      </pns:PatientEncounter>
      </PatientEncounterCHNByIDQuery_sync>
      </yq1:PatientEncounterCHNByIDQueryResponse_In>


      XML in the Server side:

      <yq1:PatientEncounterCHNByIDQueryResponse_In xmlns:yq1=" http://www.sap.com/caf/demo.sap.com/cewebservices/modeled">
      <PatientEncounterCHNByIDQuery_sync xmlns:pns=" http://sap.com/xi/IS-CHN">
      <pns:MessageHeader xmlns:yq2=" http://sap.com/xi/IS-CHN" xmlns:pns=" http://sap.com/xi/IS-CHN/Global">
      <pns:CreationDateTime>2009-03-16T16:08:46.262+01:00</pns:CreationDateTime>
      <pns:SenderParty>
      <pns:InternalID>
      <pns:simpleContent>.174</pns:simpleContent>
      <pns:schemeID>2.16.840.1.113883.4.292</pns:schemeID>
      </pns:InternalID>
      <pns:ContactPerson>
      <pns:InternalID>
      <pns:simpleContent>987654321</pns:simpleContent>
      <pns:schemeID>2.16.840.1.113883.4.292.174</pns:schemeID>
      </pns:InternalID>
      </pns:ContactPerson>
      </pns:SenderParty>
      <pns:RecipientParty>
      <pns:InternalID>
      <pns:simpleContent>.00</pns:simpleContent>
      <pns:schemeID>2.16.840.1.113883.4.292</pns:schemeID>
      </pns:InternalID>
      </pns:RecipientParty>
      <pns:BusinessScope>
      <pns:TypeCode>
      <pns:simpleContent>1</pns:simpleContent>
      </pns:TypeCode>
      <pns:InstanceID>
      <pns:simpleContent>CAF Testing</pns:simpleContent>
      </pns:InstanceID>
      </pns:BusinessScope>
      </pns:MessageHeader>
      <pns:PatientEncounter>
      <pns:ID xmlns:yq3=" http://sap.com/xi/IS-CHN" xmlns:pns=" http://sap.com/xi/IS-CHN/Global">
      <pns:simpleContent>000000000000012</pns:simpleContent>
      </pns:ID>
      <pns:InternalID>HCB-ENC-0012</pns:InternalID>
      </pns:PatientEncounter>
      </PatientEncounterCHNByIDQuery_sync>
      </yq1:PatientEncounterCHNByIDQueryResponse_In>


      Flex is changing the <MessageHeader> Tag !! Has anyone been in trouble with this?

      Thanks in advance,

      toni