locked
Response from SOAP RRS feed

  • Question

  • User-571490394 posted

    i have a WSDL provided, for sending and receive data: this is the definition:

    <?xml version="1.0" encoding="utf-8"?>
    <wsdl:definitions xmlns:wsap="http://schemas.xmlsoap.org/ws/2004/08/addressing/policy" xmlns:wsa10="http://www.w3.org/2005/08/addressing" xmlns:tns="http://tempuri.org/" xmlns:msc="http://schemas.microsoft.com/ws/2005/12/wsdl/contract" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy" xmlns:wsam="http://www.w3.org/2007/05/addressing/metadata" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:wsx="http://schemas.xmlsoap.org/ws/2004/09/mex" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="MessageService" targetNamespace="http://tempuri.org/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
      <wsdl:types>
        <xsd:schema targetNamespace="http://tempuri.org/Imports">
          <xsd:import schemaLocation="xsd0.xsd" namespace="http://tempuri.org/" />
          <xsd:import schemaLocation="xsd1.xsd" namespace="http://schemas.microsoft.com/2003/10/Serialization/" />
          <xsd:import schemaLocation="xsd2.xsd" namespace="http://schemas.datacontract.org/2004/07/GpsWireless.Entities" />
        </xsd:schema>
      </wsdl:types>
      <wsdl:message name="IMessageService_SendMessageForVehicleAssignment_InputMessage">
        <wsdl:part name="parameters" element="tns:SendMessageForVehicleAssignment" />
      </wsdl:message>
      <wsdl:message name="IMessageService_SendMessageForVehicleAssignment_OutputMessage">
        <wsdl:part name="parameters" element="tns:SendMessageForVehicleAssignmentResponse" />
      </wsdl:message>
      <wsdl:portType name="IMessageService">
        <wsdl:operation name="SendMessageForVehicleAssignment">
          <wsdl:input wsaw:Action="http://tempuri.org/IMessageService/SendMessageForVehicleAssignment" message="tns:IMessageService_SendMessageForVehicleAssignment_InputMessage" />
          <wsdl:output wsaw:Action="http://tempuri.org/IMessageService/SendMessageForVehicleAssignmentResponse" message="tns:IMessageService_SendMessageForVehicleAssignment_OutputMessage" />
        </wsdl:operation>
      </wsdl:portType>
      <wsdl:binding name="BasicHttpBinding_IMessageService" type="tns:IMessageService">
        <soap:binding transport="http://schemas.xmlsoap.org/soap/http" />
        <wsdl:operation name="SendMessageForVehicleAssignment">
          <soap:operation soapAction="http://tempuri.org/IMessageService/SendMessageForVehicleAssignment" style="document" />
          <wsdl:input>
            <soap:body use="literal" />
          </wsdl:input>
          <wsdl:output>
            <soap:body use="literal" />
          </wsdl:output>
        </wsdl:operation>
      </wsdl:binding>
      <wsdl:service name="MessageService">
        <wsdl:port name="BasicHttpBinding_IMessageService" binding="tns:BasicHttpBinding_IMessageService">
          <soap:address location="https://hostname.com/XISOAPAdapter/MessageServlet?senderParty=&senderService=GPS_QAS&receiverParty=&receiverService=&interface=SI_OA_VehicleEvents&interfaceNamespace=http://hostname.com/GPS/VehicleEvents"/>
        </wsdl:port>
      </wsdl:service>
    </wsdl:definitions>

    When tested from IE, after passing the credentials, the response is:

    Message Servlet is in Status OK

    Status information:

    Servlet com.sap.aii.adapter.soap.web.MessageServlet (Version $Id: //tc/xpi.adapters/NW711_08_REL/src/_soap_application_web_module/webm/api/com/sap/aii/adapter/soap/web/MessageServlet.java#1 $) bound to /MessageServlet 
    Classname ModuleProcessor: null 
    Lookupname for localModuleProcessorLookupName: localejbs/ModuleProcessorBean 
    Lookupname for remoteModuleProcessorLookupName: null 
    ModuleProcessorClass not instantiated 
    ModuleProcessorLocal is Instance of $Proxy3184 
    ModuleProcessorRemote not instantiated

    SAP users says the server it's ok.

    There are two only methods SendMessageForVehicleAssignment and SendMessageForVehicleAssignmentResponse.

    I'm connection throuth WSDL, if i specify the address where the service is: 

    https://hostname.com/XISOAPAdapter/MessageServlet?senderParty=&senderService=GPS_QAS&receiverParty=&receiverService=&interface=SI_OA_VehicleEvents&interfaceNamespace=http://hostname.com/GPS/VehicleEvents"

    i got some errors.

    i have a sample data xml with the send method, how can i test if the connection was ok throught WSDL?

    i tested the httpresponse method and status was OK. or how can i test the response method from the webservice ?

    Regards!

    Wednesday, October 23, 2013 5:07 PM

Answers

  • User-1623675128 posted

    you may need to ask your server guys to have a sample SOAP XML for request then you can test the Service using SOAPUI. if the call is okay with SOAPUI tool then you can adjsut your code accordingly.

    by just WSDL I dont think you can pass the required data unless the parameters are simple type.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Thursday, October 24, 2013 12:11 AM