[esb-users] Problem with SOAPClient Action

Pablo Pazos pablo.swp at gmail.com
Sat Nov 22 15:22:16 EST 2008


Hi, I have modified the web service consumer 1 quickstart to call a web
service defined by me. When the WS is invoked, I get this exception (note
that the port 8484 is removed from the url on 15:00:57,890 WARN, I don't
know why):

15:00:55,421 INFO  [STDOUT] Retrieving document at '*
http://localhost:8484/webservices/services/web?wsdl'*.
15:00:55,437 INFO  [SchemaUtils] Loading schema types from [
http://localhost:8484/webservices/services/web?wsdl]
15:00:55,437 INFO  [SchemaUtils] Getting schema
http://localhost:8484/webservices/services/web?wsdl
15:00:55,453 INFO  [SchemaUtils] schema for [http://DefaultNamespace]
contained [{}] namespaces
15:00:56,218 INFO  [WsdlImporter] Finding importer for {
http://DefaultNamespace}webHttpBinding
15:00:56,250 INFO  [WsdlImporter] Importing binding {http://DefaultNamespace
}webHttpBinding
15:00:56,593 INFO  [Soap11HttpBindingImporter] importing endpoint
http://localhost/webservices/services/web
15:00:56,593 INFO  [Soap11HttpBindingImporter] importing operation hello
15:00:57,890 WARN  [SOAPClient] Received status code '404' on HTTP SOAP
(POST) request to *'http://localhost/webservices/services/web*'.
15:00:57,937 ERROR [STDERR] [Fatal Error] :1:1018: The element type "HR"
must be terminated by the matching end-tag "</HR>".
15:00:57,937 WARN  [ActionProcessingPipeline] Unexpected exception caught
while processing the action pipeline: header: [ To: JMSEpr [ PortReference <
<wsa
:Address jms://127.0.0.1:1099/queue/esb_entry_point_1/>,
<wsa:ReferenceProperties jbossesb:java.naming.factory.initial :
org.jnp.interfaces.NamingContextFa
ctory/>, <wsa:ReferenceProperties jbossesb:java.naming.provider.url : jnp://
127.0.0.1:1099/>, <wsa:ReferenceProperties
jbossesb:java.naming.factory.url.pkg
s : org.jboss.naming:org.jnp.interfaces/>, <wsa:ReferenceProperties
jbossesb:destination-type : queue/>, <wsa:ReferenceProperties
jbossesb:specification-ve
rsion : 1.1/>, <wsa:ReferenceProperties jbossesb:connection-factory :
ConnectionFactory/>, <wsa:ReferenceProperties jbossesb:persistent : true/>,
<wsa:Refe
renceProperties jbossesb:acknowledge-mode : AUTO_ACKNOWLEDGE/>,
<wsa:ReferenceProperties jbossesb:transacted : false/>,
<wsa:ReferenceProperties jbossesb:t
ype : urn:jboss/esb/epr/type/jms/> > ] MessageID:
03594ce5-1697-405f-a7e1-5b5116c9e1f0 RelatesTo:
jms:correlationID#03594ce5-1697-405f-a7e1-5b5116c9e1f0 ]
org.jboss.soa.esb.actions.ActionProcessingException: Error parsing SOAP
response.
        at
org.jboss.soa.esb.actions.soap.SOAPClient.populateResponseOgnlMap(SOAPClient.java:526)
        at
org.jboss.soa.esb.actions.soap.SOAPClient.processResponse(SOAPClient.java:486)
        at
org.jboss.soa.esb.actions.soap.SOAPClient.process(SOAPClient.java:419)
        at
org.jboss.soa.esb.listeners.message.ActionProcessingPipeline.process(ActionProcessingPipeline.java:316)
        at
org.jboss.soa.esb.listeners.message.MessageAwareListener$TransactionalRunner.run(MessageAwareListener.java:530)
        at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)
        at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
        at java.lang.Thread.run(Thread.java:619)
Caused by: org.xml.sax.SAXParseException: The element type "HR" must be
terminated by the matching end-tag "</HR>".
        at org.apache.xerces.parsers.DOMParser.parse(Unknown Source)
        at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source)
        at
org.jboss.soa.esb.actions.soap.SOAPClient.populateResponseOgnlMap(SOAPClient.java:519)
        ... 7 more
15:00:58,093 WARN  [ActionProcessingPipeline] No fault address defined for
fault message! To: JMSEpr [ PortReference < <wsa:Address jms://
127.0.0.1:1099/qu
eue/esb_entry_point_1/>, <wsa:ReferenceProperties
jbossesb:java.naming.factory.initial :
org.jnp.interfaces.NamingContextFactory/>, <wsa:ReferencePropertie
s jbossesb:java.naming.provider.url : jnp://127.0.0.1:1099/>,
<wsa:ReferenceProperties jbossesb:java.naming.factory.url.pkgs :
org.jboss.naming:org.jnp.int
erfaces/>, <wsa:ReferenceProperties jbossesb:destination-type : queue/>,
<wsa:ReferenceProperties jbossesb:specification-version : 1.1/>,
<wsa:ReferencePro
perties jbossesb:connection-factory : ConnectionFactory/>,
<wsa:ReferenceProperties jbossesb:persistent : true/>,
<wsa:ReferenceProperties jbossesb:acknowl
edge-mode : AUTO_ACKNOWLEDGE/>, <wsa:ReferenceProperties jbossesb:transacted
: false/>, <wsa:ReferenceProperties jbossesb:type :
urn:jboss/esb/epr/type/jms
/> > ] MessageID: 03594ce5-1697-405f-a7e1-5b5116c9e1f0 RelatesTo:
jms:correlationID#03594ce5-1697-405f-a7e1-5b5116c9e1f0


This is the wsdl:

<wsdl:definitions targetNamespace="http://DefaultNamespace"
xmlns:soapenc12="http://www.w3.org/2003/05/soap-encoding" xmlns:tns="
http://DefaultNamespace" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap11="
http://schemas.xmlsoap.org/soap/envelope/" xmlns:wsdlsoap="
http://schemas.xmlsoap.org/wsdl/soap/" xmlns:soapenc11="
http://schemas.xmlsoap.org/soap/encoding/" xmlns:soap12="
http://www.w3.org/2003/05/soap-envelope">
<wsdl:types>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
attributeFormDefault="qualified" elementFormDefault="qualified"
targetNamespace="http://DefaultNamespace">
<xsd:element name="hello">
<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="helloResponse">
<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="helloRequest">
<wsdl:part name="parameters" element="tns:hello">
</wsdl:part>
</wsdl:message>
<wsdl:message name="helloResponse">
<wsdl:part name="parameters" element="tns:helloResponse">

</wsdl:part>
</wsdl:message>
<wsdl:portType name="web">
<wsdl:operation name="hello">
<wsdl:input name="helloRequest" message="tns:helloRequest">
</wsdl:input>
<wsdl:output name="helloResponse" message="tns:helloResponse">
</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="hello">
<wsdlsoap:operation soapAction=""/>
<wsdl:input name="helloRequest">
<wsdlsoap:body use="literal"/>
</wsdl:input>
<wsdl:output name="helloResponse">

<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>

Note> This WS is plublished by a GRAILS app with XFire plugin.


Any ideas?

thanks!
Pablo.


-- 
Atte.
A/C Pablo Pazos Gutierrez
http://www.simplewebportal.net
http://pablo.swp.googlepages.com/home
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/esb-users/attachments/20081122/1c4890ec/attachment.html 


More information about the esb-users mailing list