Problem with SOAPClient Action
by Pablo Pazos
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
15 years, 11 months
How to send ESB message from one service to another service?
by Ashok Sharma
Hi All,
i have one service which consists of three actions works in steps
extract data, transform data and send file via ftp.
Now i want to remove third action from action chain and want to have
seperate service to perform its task (send file via FTP).
To achive this i have to send the ESB message generated from step 2
(transformation) to the new service. I don't know how to connect to second
service and send the ESB message generated by first service.
Please help.
Regards,
Ashok Sharma
Sr.System Analyst,
<http://www.talentbeat.com/> www.talentbeat.com
Mbl: (+91) - 9766925551
15 years, 11 months
How can i create message monitoring tool
by Ashok Sharma
Hi All,
I want to use ESB to create one service which will consist of 3 actions.
First action will be used to Extract data from database, add the object in
message body.
Second action will be used to transform the message (which is in POJO
format) into XML format using smooks transformation.
Third action will FTP the file.
Here I wanted to have one monitoring tool using that I can closely monitor
the progress of the messages flowing through the action chain.
I would be very glad if any one can help me.
Thanks in advance.
Regards,
Ashok Sharma
Sr.System Analyst,
<http://www.talentbeat.com/> www.talentbeat.com
Mbl: (+91) - 9766925551
15 years, 11 months
Jboss ESB deployment on Tomcat
by Anand Nigam
Hi,
I need to deploy Jboss ESB on tomcat. I have downloaded 'jbossesb-4.4.GA.zp' and trying to deploy in on tomcat using the following ant target of the build.xml present in the
install directory of the distribution:
ant tomcat
this is giving the following errors:
C:\Users\Public\Downloads\jbossesb-4.4.GA\install>ant tomcat
Buildfile: build.xml
check.tomcat.props:
dependencies.source:
dependencies.jbossesb:
dependencies:
tomcat.compile:
[javac] Compiling 1 source file to C:\Users\Public\Downloads\jbossesb-4.4.GA\install\tomcat\war\WEB-INF\classes
[javac] C:\Users\Public\Downloads\jbossesb-4.4.GA\install\tomcat\src\org\jboss\soa\esb\servlet\ConfigListener.java:9: p
ackage org.jboss.soa.esb.common does not exist
[javac] import org.jboss.soa.esb.common.Environment;
[javac] ^
[javac] C:\Users\Public\Downloads\jbossesb-4.4.GA\install\tomcat\src\org\jboss\soa\esb\servlet\ConfigListener.java:10:
package org.jboss.soa.esb.listeners.config does not exist
[javac] import org.jboss.soa.esb.listeners.config.ConfigurationController;
[javac] ^
[javac] C:\Users\Public\Downloads\jbossesb-4.4.GA\install\tomcat\src\org\jboss\soa\esb\servlet\ConfigListener.java:21:
cannot find symbol
[javac] symbol : class ConfigurationController
[javac] location: class org.jboss.soa.esb.servlet.ConfigListener
[javac] private ConfigurationController configurationController ;
[javac] ^
[javac] C:\Users\Public\Downloads\jbossesb-4.4.GA\install\tomcat\src\org\jboss\soa\esb\servlet\ConfigListener.java:45:
cannot find symbol
[javac] symbol : variable Environment
[javac] location: class org.jboss.soa.esb.servlet.ConfigListener
[javac] System.setProperty(Environment.PROPERTIES_FILE, "abs://" + absPropertyFile) ;
[javac] ^
[javac] C:\Users\Public\Downloads\jbossesb-4.4.GA\install\tomcat\src\org\jboss\soa\esb\servlet\ConfigListener.java:60:
cannot find symbol
[javac] symbol : class ConfigurationController
[javac] location: class org.jboss.soa.esb.servlet.ConfigListener
[javac] configurationController = new ConfigurationController(absConfigFile, null) ;
[javac] ^
[javac] 5 errors
BUILD FAILED
C:\Users\Public\Downloads\jbossesb-4.4.GA\install\build.xml:212: Compile failed; see the compiler error output for details.
My deploy.properties looks like this:
######################################################################
# JBossESB ant deployment properties file
#
# Copy the example file and replace with your values
#
######################################################################
######################################################################
# You can use three deployment options: deploy to JBossAS, Tomcat or
# create a standalone launcher, so you probably only care about
# one of the following sections.
######################################################################
# JBossAS
######################################################################
# The Directory in Which JBoss AS is Installed
# The absolute path to a directory in which a version of JBoss AS with
# EJB3 has been installed.
# This path should not include spaces.
# Use of relative paths or paths with spaces will cause runtime errors
# when deploying and executing the quickstart and the trailblazers.
# (e.g. /home/pbennett/jboss-4.0.5.GA-ejb3)
# (By default the 'ant install' task will create this directory.)
# org.jboss.esb.server.home=/jbossesb-server-4.2
# The Configuration of JBoss AS to Use
# (e.g. default)
# org.jboss.esb.server.config=default
######################################################################
# Tomcat
######################################################################
# jbossesb tomcat home directory
org.jboss.esb.tomcat.home=C:/Users/Public/Downloads/apache-tomcat-5.5.20
org.jboss.esb.dist.lib=../lib
Please let me know what I am doing wron here. I am new to Jboss ESB so I may be missing some basic configuration.
Regards,
Anand.
15 years, 12 months