Announcement

Collapse
No announcement yet.

How to call a WebService from OTM (WDSL)

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • How to call a WebService from OTM (WDSL)

    I need to call a Web Service from OTM and I cannot do it. I have followed the following steps:
    1- Create a WebService in the Comunication Management. (Soap Encoding = Document. Style= Request/Response) (The Wdsl is attached below)
    2- Create an externa system, with the Web Service Asociated
    3- Create an Automation Agent. When an order is created, send integration to the external system

    I have the following error:

    oracle.xml.parser.v2.XMLParseException: Start of root element expected.

    in other cases i have this error:

    org.xml.sax.SAXException: SimpleDeserializer encountered a child element, which is NOT expected, in something it was trying to deserialize.

    The Wdsl of the external web service is:

    <?xml version="1.0" encoding="UTF-8" ?>
    - <wsdl:definitions targetNamespace="http://ws.otmadaptador.mutua.mapfre.com" xmlns:apachesoap="http://xml.apache.org/xml-soap" xmlns:impl="http://ws.otmadaptador.mutua.mapfre.com" xmlns:intf="http://ws.otmadaptador.mutua.mapfre.com" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    - <!-- WSDL created by Apache Axis version: 1.3Built on Oct 05, 2005 (05:23:37 EDT) -->
    - <wsdl:types>
    - <schema elementFormDefault="qualified" targetNamespace="http://ws.otmadaptador.mutua.mapfre.com" xmlns="http://www.w3.org/2001/XMLSchema">
    - <element name="actualizaEstadoOrden">
    <complexType />

    </element>


    - <element name="actualizaEstadoOrdenResponse">
    - <complexType>
    - <sequence>
    <element name="actualizaEstadoOrdenReturn" type="xsd:string" />

    </sequence>


    </complexType>


    </element>


    </schema>


    </wsdl:types>


    - <wsdl:message name="actualizaEstadoOrdenResponse">
    <wsdlart element="intf:actualizaEstadoOrdenResponse" name="parameters" />

    </wsdl:message>


    - <wsdl:message name="actualizaEstadoOrdenRequest">
    <wsdlart element="intf:actualizaEstadoOrden" name="parameters" />

    </wsdl:message>


    - <wsdlortType name="TestSimpleWS">
    - <wsdlperation name="actualizaEstadoOrden">
    <wsdl:input message="intf:actualizaEstadoOrdenRequest" name="actualizaEstadoOrdenRequest" />

    <wsdlutput message="intf:actualizaEstadoOrdenResponse" name="actualizaEstadoOrdenResponse" />

    </wsdlperation>


    </wsdlortType>


    - <wsdl:binding name="TestSimpleWSSoapBinding" type="intf:TestSimpleWS">
    <wsdlsoap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http" />

    - <wsdlperation name="actualizaEstadoOrden">
    <wsdlsoapperation soapAction="" />

    - <wsdl:input name="actualizaEstadoOrdenRequest">
    <wsdlsoap:body use="literal" />

    </wsdl:input>


    - <wsdlutput name="actualizaEstadoOrdenResponse">
    <wsdlsoap:body use="literal" />

    </wsdlutput>


    </wsdlperation>


    </wsdl:binding>


    - <wsdl:service name="TestSimpleWSService">
    - <wsdlort binding="intf:TestSimpleWSSoapBinding" name="TestSimpleWS">
    <wsdlsoap:address location="http://10.252.228.79:9085/OTMADAPTAD...s/TestSimpleWS" />

    </wsdlort>


    </wsdl:service>


    </wsdl:definitions>



  • #2
    Re: How to call a WebService from OTM (WDSL)

    Hi Garcia,

    I couldnt find any attachment. Kindly attach that doc you had mentioned..

    Rgds
    Uppili

    Comment


    • #3
      Re: How to call a WebService from OTM (WDSL)

      Sorry, the wsdl is written down in the message, is not attached

      Comment

      Working...
      X