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

SOAP::Transport::HTTP::Client::send_receive: HTTP/1.1 415 Cannot process

Expand Messages
  • Sanjay Saxena
    When code is as follows my $s = SOAP::Lite - proxy( http://172.17.164.154:4094/SDrive/SDAMex ) - uri( urn:#SDAGetWSInfo ); logcomment( Response is $s ); my
    Message 1 of 1 , Jul 21 2:23 PM
    • 0 Attachment
      When code is as follows

      my $s = SOAP::Lite
      -> proxy('http://172.17.164.154:4094/SDrive/SDAMex')
      -> uri('urn:#SDAGetWSInfo');
      logcomment("Response is $s");
      my $res = $s->SDAGetWSInfoRequest((SOAP::Data->name(undef));
      if (!($res->fault)) {
      logcomment("SnapDrive Major Version is $res->valueof
      ('//SDriveVersion/MajorVersion')");
      }

      SOAP::Transport::HTTP::Client::send_receive: HTTP::Request=HASH
      (0x19778ac)
      SOAP::Transport::HTTP::Client::send_receive: POST
      http://myServer:8080/SDrive/SDAMex HTTP/1.1
      Accept: text/xml
      Accept: multipart/*
      Accept: application/soap
      Content-Length: 488
      Content-Type: text/xml; charset=utf-8
      SOAPAction: "urn:#SDAGetWSInfo#SDAGetWSInfoRequest"

      <?xml version="1.0" encoding="UTF-8"?><soap:Envelope
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
      xmlns:xsd="http://www.w3.org/2001/XMLSchema"
      soap:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
      xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Body><SDA
      GetWSInfoRequest xmlns="urn:#SDAGetWSInfo"><c-
      gensym3 /></SDAGetWSInfoRequest></soap:Body></soap:Envelope>
      SOAP::Transport::HTTP::Client::send_receive: HTTP::Response=HASH
      (0x1a1f830)
      SOAP::Transport::HTTP::Client::send_receive: HTTP/1.1 415 Cannot
      process the message because the content type 'text/xml; charset=utf-
      8' was not the expected type 'application/soap+xml; charset=utf-8'.
      Date: Mon, 21 Jul 2008 19:25:43 GMT


      While for same request through soapUI I do following, question here
      is how do make SOAP:LITE to send same request as below


      <soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope"
      xmlns:v="http://www.netapp.com/SDrive/SDA/v_1.0"
      xmlns:a="http://www.w3.org/2005/08/addressing">
      <soap:Header>
      <a:Action
      soap:mustUnderstand="1">urn:#SDAGetWSInfo</a:Action>
      <a:To
      soap:mustUnderstand="1">http://myServer:8080/SDrive/SDA</a:To>
      </soap:Header>
      <soap:Body>
      <v:SDAGetWSInfo/>
      </soap:Body>
      </soap:Envelope>


      I get following response

      <s:Envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope"
      xmlns:a="http://www.w3.org/2005/08/addressing">
      <s:Header>
      <a:Action
      s:mustUnderstand="1">urn:#SDAGetWSInfoResponse</a:Action>
      </s:Header>
      <s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xmlns:xsd="http://www.w3.org/2001/XMLSchema">
      <SDAGetWSInfoResponse
      xmlns="http://www.netapp.com/SDrive/Admin/v_1.0">
      <SDriveVersion>
      <MajorVersion
      xmlns="http://www.netapp.com/SDrive/C/v_1.0">6</MajorVersion>
      <MinorVersion
      xmlns="http://www.netapp.com/SDrive/C/v_1.0">0</MinorVersion>
      <SubMinorVersion
      xmlns="http://www.netapp.com/SDrive/C/v_1.0">0</SubMinorVersion>
      <BuildNumber
      xmlns="http://www.netapp.com/SDrive/C/v_1.0">2333</BuildNumber>
      </SDriveVersion>
      <WSInfo>
      <WSInfo>
      <SerName>SWCFSer.SDSer</SerName>
      <Interfaces>
      <IInfo>
      <InterfaceName>SDD_v10</InterfaceName>
      <Version xsi:nil="true"/>

      <URLForInterface>net.tcp://localhost:808/SDrive/SDD/v_10</URLForInterf
      ace>

      <URLForInterface>http://myServer:8080/SDrive/SDD/v_10</URLForInterface
      >

      <URLForWSDL>http://myServer:8080/SDrive/SDDMex</URLForWSDL>
      </IInfo>
      </Interfaces>
      </WSInfo>
      <WSInfo>
      <SerName>SWCFSer.SPSer</SerName>
      <Interfaces>
      <IInfo>
      <InterfaceName>SDP_v10</InterfaceName>
      <Version xsi:nil="true"/>

      <URLForInterface>net.tcp://localhost:808/SDrive/SDP/v_10</URLForInterf
      ace>

      <URLForWSDL>http://myServer:8080/SDrive/SDPMex</URLForWSDL>
      </IInfo>
      </Interfaces>
      </WSInfo>
      <WSInfo>
      <SerName>SWCFSer.SSSer</SerName>
      <Interfaces>
      <IInfo>
      <InterfaceName>SDS_v10</InterfaceName>
      <Version xsi:nil="true"/>

      <URLForInterface>net.tcp://localhost:808/SDrive/SDS/v_10</URLForInterf
      ace>

      <URLForInterface>http://myServer:8080/SDrive/SDS/v_10</URLForInterface
      >

      <URLForWSDL>http://myServer:8080/SDrive/SDSMex</URLForWSDL>
      </IInfo>
      </Interfaces>
      </WSInfo>
      <WSInfo>
      <SerName>SWCFSer.SSRSer</SerName>
      <Interfaces>
      <IInfo>
      <InterfaceName>SDSR_v10</InterfaceName>
      <Version xsi:nil="true"/>

      <URLForInterface>net.tcp://localhost:808/SDrive/SDSR/v_10</URLForInter
      face>

      <URLForWSDL>http://myServer:8080/SDrive/SDSRMex</URLForWSDL>
      </IInfo>
      </Interfaces>
      </WSInfo>
      <WSInfo>
      <SerName>SWCFSer.SDsSer</SerName>
      <Interfaces>
      <IInfo>
      <InterfaceName>SDDs_v10</InterfaceName>
      <Version xsi:nil="true"/>

      <URLForInterface>net.tcp://localhost:808/SDrive/SDDs/v_10</URLForInter
      face>

      <URLForInterface>http://myServer:8080/SDrive/SDDs/v_10</URLForInterfac
      e>
      </IInfo>
      </Interfaces>
      </WSInfo>
      <WSInfo>
      <SerName>SWCFSer.SAS</SerName>
      <Interfaces>
      <IInfo>
      <InterfaceName>SDA_v10</InterfaceName>
      <Version xsi:nil="true"/>

      <URLForInterface>net.tcp://localhost:808/SDrive/SDA/v_10</URLForInterf
      ace>

      <URLForInterface>http://myServer:8080/SDrive/SDA/v_10</URLForInterface
      >

      <URLForWSDL>http://myServer:8080/SDrive/SDAMex</URLForWSDL>
      </IInfo>
      <IInfo>
      <InterfaceName>SDA</InterfaceName>
      <Version xsi:nil="true"/>

      <URLForInterface>net.tcp://localhost:808/SDrive/SDA</URLForInterface>

      <URLForInterface>http://myServer:8080/SDrive/SDA</URLForInterface>

      <URLForWSDL>http://myServer:8080/SDrive/SDAMex</URLForWSDL>
      </IInfo>
      </Interfaces>
      </WSInfo>
      </WSInfo>
      </SDAGetWSInfoResponse>
      </s:Body>
      </s:Envelope>
    Your message has been successfully submitted and would be delivered to recipients shortly.