Loading ...
Sorry, an error occurred while loading the content.

AW: [soaplite] Failed to get operation name from the incoming request

Expand Messages
  • Martin Busik
    Hi, ... It is allways good to have a working example :-) ... Please note: according to the working SoapUI example, the webservice method you are calling is
    Message 1 of 2 , Nov 5, 2010
    • 0 Attachment
      Hi,

      > Call that works out of SoapUI
      >
      > <soapenv:Envelope
      > xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
      > xmlns:prop="http://www.swisscom.com/onecrm/potree/propagation">
      > <soapenv:Header/>
      > <soapenv:Body>
      > <prop:CustomerAccount SCN="1111"
      > xmlns:prop="http://www.swisscom.com/onecrm/potree/propagation">
      > <prop:POInstance Action="Update">
      > <prop:Name>Test Access Product</prop:Name>
      > <prop:Type>PO_TESTACCESS_PRODUCT</prop:Type>
      > <prop:POIID>0111A</prop:POIID>
      > <prop:ParentPOIID>ALL:SUB:91610111</prop:ParentPOIID>
      > <prop:CFSIID>AC0.123.456.71</prop:CFSIID>
      > </prop:POInstance>
      > </prop:CustomerAccount>
      > </soapenv:Body>
      > </soapenv:Envelope>

      It is allways good to have a working example :-)

      > Perl Code
      >
      > #WebService Definition
      > #-----------------------------
      > my $webService = SOAP::Lite
      > -> uri('http://www.swisscom.com/onecrm/potree/propagation')
      > ->
      > proxy('http://138.187.96.39:8299/Processes/NetCracker/OneCRM/R
      > eplicateProductInventory/v01') #Sys2 proxy: URL (8199 SIRIUS)
      > ->
      > on_action(sub{"/Processes/NetCracker/OneCRM/ReplicateProductIn
      > ventory"}); #Set SoapAction, because it is different to URI
      >
      >
      > #WebService Call
      > #----------------
      >
      >
      > my $result = $webService-> ReplicateProductInventory(
      > SOAP::Data->name("CustomerAccount")->type("")->value(\
      > SOAP::Data->name("POInstance")->type("")->value(
      > SOAP::Data->name("Action")->type("")->value('Create'),
      > SOAP::Data->name("SCN")->type("")->value('1111'),
      > SOAP::Data->name("Name")->type("")->value('TestAA'),
      > SOAP::Data->name("Type")->type("")->value('PO_TestAA'),
      > SOAP::Data->name("POIID")->type("")->value('ALL:SUB:1111AA')
      >
      > #SOAP::Data->name("ParentPOIID")->type("")->value('2010-10-14T
      > 08:30:00'),
      >
      > #SOAP::Data->name("CFSIID")->type("")->value('2010-10-14T08:30:00'))
      > )
      > )
      > );

      Please note: according to the working SoapUI example, the webservice
      "method" you are calling
      is "CustomerAccount". According to your wsdl it should be
      "ReplicateProductInventory".
      One of them is wrong. Which one?

      If you try to create a perl request which contains the same as the working
      SoapUI example, you might
      write:

      $webService->CustomerAccount(...) or $webService->call("CustomerAccount")

      Cheers,
      Martin
    Your message has been successfully submitted and would be delivered to recipients shortly.