2 Replies Latest reply on Mar 18, 2008 9:45 AM by Patrick Leckey

    SOAP Header issues

      1. I am using ADOBE Acrobat Professional 7.0 to create PDF Application.

      2. I want to call web service from PDF Form ( Not RPC type)

      3. Herewith I am attaching all my samples.

      I want the out put like testsoapspipcdr.xml ( refer the attachment )

      I am getting the out put like pdfform.xml

      The script I am using is attached here - script.txt

      Please let me know how should I get the right output like "testsoapspipcdr.xml"

      *************************************************************

      Script.txt
      -------------

      var CNAMessage = xfa.data.saveXML();
      xfa.host.messageBox(CNAMessage);

      var cURL = "http://localhost:9081/ECMSpecialtyWeb/services/CNARouterPort";
      var NS = "http://schemas.xmlsoap.org/ws/2004/08/addressing:";
      var oHeader = {};
      oHeader[NS + "To"] =
      {
      soapType: "",
      soapValue: "com.cna.app.ecmspecialty.producer.CfECMSpecialtyProducerImpl"
      };
      var oResultHeader = {};
      var oRequest = {};
      oRequest[""+""] = {soapType: "",soapValue:"<test></test>"};
      var response = SOAP.request(
      {
      cURL: cURL,
      oRequest: oRequest,
      cAction: "http://testurl.com",
      oReqHeader: oHeader,
      oRespHeader: oResultHeader
      });

      pdfform.xml ( This is what I am getting )
      ----------------

      <SOAP-ENV:Header>
      <ns0:To SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns0="http://schemas.xmlsoap.org/ws/2004/08/addressing" xsi:type="">com.cna.app.ecmspecialty.producer.CfECMSpecialtyProducerImpl</ns0:To>
      </SOAP-ENV:Header>

      testsoapspipcdr.xml ( expected format )
      ------------------------

      <soapenv:Header>
      <wsu:Timestamp xmlns:wsu="http://schemas.xmlsoap.org/ws/2002/07/utility" xmlns:cnaUtility="http://www.cna.com/services/runtime/utility">
      <Created cnaUtility:Sender="MXPCHWKAMSU" xmlns="">Fri Nov 11 16:18:18 CST 2005</Created>
      </wsu:Timestamp>
      <wsa:To cnaAddressing:packageName="CNACSPIServicePackage1" cnaAddressing:serviceName="FindPPCAddresses" cnaAddressing:versionName="1" cnaAddressing:consumerType="DEFAULT" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:cnaAddressing="http://www.cna.com/services/runtime/addressing">com.cna.app.ppc.prod ucer.CfSPIPPCProducerImpl</wsa:To>
      <wsa:RelatesTo xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing">uuid:NFAD2890030111DAB20AC9B 618A69ADD</wsa:RelatesTo>
      <wsa:MessageID xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing">uuid:NFAD2890030111DAB20AC9B 618A69ADD</wsa:MessageID>
      <serviceConsumer:serviceConsumer xmlns:serviceConsumer="http://services.cna.com/serviceConsumer">
      <cnaApplicationName xmlns="">SampleConsumer</cnaApplicationName>
      <cnaLanguage xmlns="">en</cnaLanguage>
      <cnaLocale xmlns="">US</cnaLocale>
      <cnaConsumerPlatform xmlns="">WAS</cnaConsumerPlatform>
      <cnaAddressing:cnaLogLevel xmlns:cnaAddressing="http://www.cna.com/services/runtime/addressing">-1</cnaAddressing:cn aLogLevel>
      <cnaCheckPermission xmlns="">false</cnaCheckPermission>
      </serviceConsumer:serviceConsumer>
      <ExtensionHeader xsi:nil="true" xmlns="http://services.cna.com/extHeader" />
      </soapenv:Header>