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">
<wsdl
art element="intf:actualizaEstadoOrdenResponse" name="parameters" />
</wsdl:message>
- <wsdl:message name="actualizaEstadoOrdenRequest">
<wsdl
art element="intf:actualizaEstadoOrden" name="parameters" />
</wsdl:message>
- <wsdl
ortType name="TestSimpleWS">
- <wsdl
peration name="actualizaEstadoOrden">
<wsdl:input message="intf:actualizaEstadoOrdenRequest" name="actualizaEstadoOrdenRequest" />
<wsdl
utput message="intf:actualizaEstadoOrdenResponse" name="actualizaEstadoOrdenResponse" />
</wsdl
peration>
</wsdl
ortType>
- <wsdl:binding name="TestSimpleWSSoapBinding" type="intf:TestSimpleWS">
<wsdlsoap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http" />
- <wsdl
peration name="actualizaEstadoOrden">
<wsdlsoap
peration soapAction="" />
- <wsdl:input name="actualizaEstadoOrdenRequest">
<wsdlsoap:body use="literal" />
</wsdl:input>
- <wsdl
utput name="actualizaEstadoOrdenResponse">
<wsdlsoap:body use="literal" />
</wsdl
utput>
</wsdl
peration>
</wsdl:binding>
- <wsdl:service name="TestSimpleWSService">
- <wsdl
ort binding="intf:TestSimpleWSSoapBinding" name="TestSimpleWS">
<wsdlsoap:address location="http://10.252.228.79:9085/OTMADAPTAD...s/TestSimpleWS" />
</wsdl
ort>
</wsdl:service>
</wsdl:definitions>
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">
<wsdl

</wsdl:message>
- <wsdl:message name="actualizaEstadoOrdenRequest">
<wsdl

</wsdl:message>
- <wsdl

- <wsdl

<wsdl:input message="intf:actualizaEstadoOrdenRequest" name="actualizaEstadoOrdenRequest" />
<wsdl

</wsdl

</wsdl

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

<wsdlsoap

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

<wsdlsoap:body use="literal" />
</wsdl

</wsdl

</wsdl:binding>
- <wsdl:service name="TestSimpleWSService">
- <wsdl

<wsdlsoap:address location="http://10.252.228.79:9085/OTMADAPTAD...s/TestSimpleWS" />
</wsdl

</wsdl:service>
</wsdl:definitions>
Comment