Hi, I've a SOAPAction on the ESB to call a web service, when it's invoked I get a weird error, I don't know what it means, any ideas? thank you!
Attached is the ESB project.
The Error: Response Map is: {Fault.faultcode=soap:Server, Fault.faultstring=Unexpected EOF in prolog at [row,col {unknown-source}]: [1,0]}
Full log:
00:37:22,015 INFO [STDOUT] &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
00:37:22,015 INFO [STDOUT] == MyRequestAction ==
00:37:22,015 INFO [STDOUT] Request map is: {hello.name=Hello World - Straight to ESB listener - no Gateway}
00:37:22,015 INFO [STDOUT] &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
00:37:22,015 INFO [STDOUT] Progress: 1 - Caching definition from url [http://localhost:8484/webservices/services/web?wsdl]
00:37:22,890 WARN [HttpMethodBase] Going to buffer response body of large or unknown size. Using getResponseBodyAsStream instead is recomme
nded.
00:37:22,905 INFO [STDOUT] Progress: 1 - Loading definition from cache
00:37:22,921 INFO [STDOUT] Retrieving document at 'http://localhost:8484/webservices/services/web?wsdl'.
00:37:22,937 INFO [SchemaUtils] Loading schema types from [http://localhost:8484/webservices/services/web?wsdl]
00:37:22,937 INFO [SchemaUtils] Getting schema http://localhost:8484/webservices/services/web?wsdl
00:37:22,968 INFO [SchemaUtils] schema for [http://DefaultNamespace] contained [{}] namespaces
00:37:23,202 INFO [WsdlImporter] Finding importer for {http://DefaultNamespace}webHttpBinding
00:37:23,202 INFO [WsdlImporter] Importing binding {http://DefaultNamespace}webHttpBinding
00:37:23,202 INFO [Soap11HttpBindingImporter] importing endpoint http://localhost/webservices/services/web
00:37:23,202 INFO [Soap11HttpBindingImporter] importing operation hello
00:37:23,202 INFO [Soap11HttpBindingImporter] importing operation pepe
00:37:23,202 INFO [Soap11HttpBindingImporter] importing operation sendMessage
00:37:23,343 WARN [SOAPClient] Received status code '500' on HTTP SOAP (POST) request to 'http://localhost/webservices/services/web'.
00:37:23,343 WARN [HttpMethodBase] Going to buffer response body of large or unknown size. Using getResponseBodyAsStream instead is recomme
nded.
00:37:23,343 INFO [STDOUT] &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
00:37:23,358 INFO [STDOUT] Response Map is: {Fault.faultcode=soap:Server, Fault.faultstring=Unexpected EOF in prolog
at [row,col {unknown-source}]: [1,0]}
00:37:23,358 INFO [STDOUT] &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
This is the wsdl:
<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions targetNamespace="http://DefaultNamespace" xmlns:tns="http://DefaultNamespace" xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soapenc11="http://schemas.xmlsoap.org/soap/encoding/" xmlns:soapenc12="http://www.w3.org/2003/05/soap-encoding" xmlns:soap11="http://schemas.xmlsoap.org/soap/envelope/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
<wsdl:types>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" attributeFormDefault="qualified" elementFormDefault="qualified" targetNamespace="http://DefaultNamespace">
<xsd:element name="pepe">
<xsd:complexType>
<xsd:sequence>
<xsd:element maxOccurs="1" minOccurs="1" name="name" nillable="true" type="xsd:string"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="pepeResponse">
<xsd:complexType>
<xsd:sequence>
<xsd:element maxOccurs="1" minOccurs="1" name="out" nillable="true" type="xsd:string"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="sendMessage">
<xsd:complexType>
<xsd:sequence>
<xsd:element maxOccurs="1" minOccurs="1" name="msg" nillable="true" type="xsd:string"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="sendMessageResponse">
<xsd:complexType>
<xsd:sequence>
<xsd:element maxOccurs="1" minOccurs="1" name="out" nillable="true" type="xsd:string"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:schema>
</wsdl:types>
<wsdl:message name="pepeRequest">
<wsdl:part name="parameters" element="tns:pepe">
</wsdl:part>
</wsdl:message>
<wsdl:message name="sendMessageResponse">
<wsdl:part name="parameters" element="tns:sendMessageResponse">
</wsdl:part>
</wsdl:message>
<wsdl:message name="pepeResponse">
<wsdl:part name="parameters" element="tns:pepeResponse">
</wsdl:part>
</wsdl:message>
<wsdl:message name="sendMessageRequest">
<wsdl:part name="parameters" element="tns:sendMessage">
</wsdl:part>
</wsdl:message>
<wsdl:portType name="web">
<wsdl:operation name="pepe">
<wsdl:input name="pepeRequest" message="tns:pepeRequest">
</wsdl:input>
<wsdl:output name="pepeResponse" message="tns:pepeResponse">
</wsdl:output>
</wsdl:operation>
<wsdl:operation name="sendMessage">
<wsdl:input name="sendMessageRequest" message="tns:sendMessageRequest">
</wsdl:input>
<wsdl:output name="sendMessageResponse" message="tns:sendMessageResponse">
</wsdl:output>
</wsdl:operation>
</wsdl:portType>
<wsdl:binding name="webHttpBinding" type="tns:web">
<wsdlsoap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
<wsdl:operation name="pepe">
<wsdlsoap:operation soapAction=""/>
<wsdl:input name="pepeRequest">
<wsdlsoap:body use="literal"/>
</wsdl:input>
<wsdl:output name="pepeResponse">
<wsdlsoap:body use="literal"/>
</wsdl:output>
</wsdl:operation>
<wsdl:operation name="sendMessage">
<wsdlsoap:operation soapAction=""/>
<wsdl:input name="sendMessageRequest">
<wsdlsoap:body use="literal"/>
</wsdl:input>
<wsdl:output name="sendMessageResponse">
<wsdlsoap:body use="literal"/>
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
<wsdl:service name="web">
<wsdl:port name="webHttpPort" binding="tns:webHttpBinding">
<wsdlsoap:address location="http://localhost:8484/webservices/services/web"/>
</wsdl:port>
</wsdl:service>
</wsdl:definitions>
--
Atte.
A/C Pablo Pazos Gutierrez
http://www.simplewebportal.net
http://pablo.swp.googlepages.com/home