[Users] Testing a published service (on the ESB) which is running on a separated server with petals console

petaleRose [via Petals Forums] ml-node+s974793n4025172h6 at n3.nabble.com
Mon Jul 16 10:55:25 CEST 2012



I have a webservice application running fine (have tested it by calling and
inserting the parameters on the browser and with SOAPUI) on a tomcat7
platform, windows 7 (Machine A) that i have developed with netbeans 7.1.

I have packaged the producer-wsdl as .Zip file with the help of petals
Studio and loaded it on my petals ESB as an assembly component (Petals ESB
is running on a another machine ->Machine B).

Here is my wsdl:

/ <?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions targetNamespace="http://ws/js/com/"
xmlns:axis2="http://ws/js/com/" xmlns:ns1="http://org.apache.axis2/xsd"
xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
xmlns:http="http://schemas.xmlsoap.org/wsdl/http/"
xmlns:ns0="http://ws/js/com/xsd" xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"
xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/">
  <wsdl:types>
    <xs:schema attributeFormDefault="qualified"
elementFormDefault="qualified" targetNamespace="http://ws/js/com/xsd"
xmlns:ns="http://ws/js/com/xsd">
            <xs:complexType name="Exception">
                <xs:sequence>
                    <xs:element minOccurs="0" name="Exception"
nillable="true" type="xs:anyType"/>
                </xs:sequence>
            </xs:complexType>
            <xs:element name="Exception">
                <xs:complexType>
                    <xs:sequence>
                        <xs:element minOccurs="0" name="Exception"
nillable="true" type="ns0:Exception"/>
                    </xs:sequence>
                </xs:complexType>
            </xs:element>
            <xs:element name="insertInDB">
                <xs:complexType>
                    <xs:sequence>
                        <xs:element minOccurs="0" name="id" type="xs:int"/>
                        <xs:element minOccurs="0" name="msg" nillable="true"
type="xs:string"/>
                    </xs:sequence>
                </xs:complexType>
            </xs:element>
            <xs:element name="insertInDBResponse">
                <xs:complexType>
                    <xs:sequence>
                        <xs:element minOccurs="0" name="return"
type="xs:boolean"/>
                    </xs:sequence>
                </xs:complexType>
            </xs:element>
            <xs:element name="hello">
                <xs:complexType>
                    <xs:sequence>
                        <xs:element minOccurs="0" name="name"
nillable="true" type="xs:string"/>
                    </xs:sequence>
                </xs:complexType>
            </xs:element>
            <xs:element name="helloResponse">
                <xs:complexType>
                    <xs:sequence>
                        <xs:element minOccurs="0" name="return"
nillable="true" type="xs:string"/>
                    </xs:sequence>
                </xs:complexType>
            </xs:element>
        </xs:schema>
  </wsdl:types>
  <wsdl:message name="Exception">
    <wsdl:part name="parameters" element="ns0:Exception">
    </wsdl:part>
  </wsdl:message>
  <wsdl:message name="helloRequest">
    <wsdl:part name="parameters" element="ns0:hello">
    </wsdl:part>
  </wsdl:message>
  <wsdl:message name="helloResponse">
    <wsdl:part name="parameters" element="ns0:helloResponse">
    </wsdl:part>
  </wsdl:message>
  <wsdl:message name="insertInDBResponse">
    <wsdl:part name="parameters" element="ns0:insertInDBResponse">
    </wsdl:part>
  </wsdl:message>
  <wsdl:message name="insertInDBRequest">
    <wsdl:part name="parameters" element="ns0:insertInDB">
    </wsdl:part>
  </wsdl:message>
  <wsdl:portType name="MyIdManagerAxis2PortType">
    <wsdl:operation name="hello">
      <wsdl:input message="axis2:helloRequest" wsaw:Action="urn:hello">
    </wsdl:input>
      <wsdl:output message="axis2:helloResponse"
wsaw:Action="urn:helloResponse">
    </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name="insertInDB">
      <wsdl:input message="axis2:insertInDBRequest"
wsaw:Action="urn:insertInDB">
    </wsdl:input>
      <wsdl:output message="axis2:insertInDBResponse"
wsaw:Action="urn:insertInDBResponse">
    </wsdl:output>
      <wsdl:fault name="Exception" message="axis2:Exception"
wsaw:Action="urn:insertInDBException">
    </wsdl:fault>
    </wsdl:operation>
  </wsdl:portType>
  <wsdl:binding name="MyIdManagerAxis2SOAP12Binding"
type="axis2:MyIdManagerAxis2PortType">
    <soap12:binding style="document"
transport="http://schemas.xmlsoap.org/soap/http"/>
    <wsdl:operation name="hello">
      <soap12:operation soapAction="urn:hello" style="document"/>
      <wsdl:input>
        <soap12:body use="literal"/>
      </wsdl:input>
      <wsdl:output>
        <soap12:body use="literal"/>
      </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name="insertInDB">
      <soap12:operation soapAction="urn:insertInDB" style="document"/>
      <wsdl:input>
        <soap12:body use="literal"/>
      </wsdl:input>
      <wsdl:output>
        <soap12:body use="literal"/>
      </wsdl:output>
      <wsdl:fault name="Exception">
        <soap12:fault name="Exception" use="literal"/>
      </wsdl:fault>
    </wsdl:operation>
  </wsdl:binding>
  <wsdl:binding name="MyIdManagerAxis2HttpBinding"
type="axis2:MyIdManagerAxis2PortType">
    <http:binding verb="POST"/>
    <wsdl:operation name="hello">
      <http:operation location="MyIdManagerAxis2/hello"/>
      <wsdl:input>
        <mime:content part="hello" type="text/xml"/>
      </wsdl:input>
      <wsdl:output>
        <mime:content part="hello" type="text/xml"/>
      </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name="insertInDB">
      <http:operation location="MyIdManagerAxis2/insertInDB"/>
      <wsdl:input>
        <mime:content part="insertInDB" type="text/xml"/>
      </wsdl:input>
      <wsdl:output>
        <mime:content part="insertInDB" type="text/xml"/>
      </wsdl:output>
    </wsdl:operation>
  </wsdl:binding>
  <wsdl:binding name="MyIdManagerAxis2SOAP11Binding"
type="axis2:MyIdManagerAxis2PortType">
    <soap:binding style="document"
transport="http://schemas.xmlsoap.org/soap/http"/>
    <wsdl:operation name="hello">
      <soap:operation soapAction="urn:hello" style="document"/>
      <wsdl:input>
        <soap:body use="literal"/>
      </wsdl:input>
      <wsdl:output>
        <soap:body use="literal"/>
      </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name="insertInDB">
      <soap:operation soapAction="urn:insertInDB" style="document"/>
      <wsdl:input>
        <soap:body use="literal"/>
      </wsdl:input>
      <wsdl:output>
        <soap:body use="literal"/>
      </wsdl:output>
      <wsdl:fault name="Exception">
        <soap:fault name="Exception" use="literal"/>
      </wsdl:fault>
    </wsdl:operation>
  </wsdl:binding>
  <wsdl:service name="MyIdManagerAxis2">
    <wsdl:port name="MyIdManagerAxis2Httpport"
binding="axis2:MyIdManagerAxis2HttpBinding">
      <http:address
location="http://141.79.24.50:8080/axis2/services/MyIdManagerAxis2"/>
    </wsdl:port>
    <wsdl:port name="MyIdManagerAxis2SOAP12port_http"
binding="axis2:MyIdManagerAxis2SOAP12Binding">
      <soap12:address
location="http://141.79.24.50:8080/axis2/services/MyIdManagerAxis2"/>
    </wsdl:port>
    <wsdl:port name="MyIdManagerAxis2SOAP11port_http"
binding="axis2:MyIdManagerAxis2SOAP11Binding">
      <soap:address
location="http://141.79.24.50:8080/axis2/services/MyIdManagerAxis2"/>
    </wsdl:port>
  </wsdl:service>
</wsdl:definitions>/


Here are the configurations:

*Endpoint :MyIdManagerAxis2SOAP12_http
Interface: {http://ws/js/com/}MyIdManagerAxis2PortType
Service: {http://ws/js/com/}MyIdManagerAxis2
Operation:{http://ws/js/com/}insertInDB
Content : <ns:insertInDB xmlns:ns="http://ws/js/com/xsd">
              <ns:id>72</ns:id>
              <ns:msg> Test </ns:msg>
              </ns:insertInDB>
         
MEP: Inout
Timeout (milli-sec):30000*

This ESB is running on another machine and while i'm trying to test it... i
just get this error:

*BC-SOAP Exception => Can not define the Web service address to send message
to
javax.jbi.messaging.MessagingException: BC-SOAP Exception => Can not define
the Web service address to send message to    at
org.ow2.petals.binding.soap.listener.outgoing.AbstractExternalServiceCaller.handleException(AbstractExternalServiceCaller.java:274)   
at
org.ow2.petals.binding.soap.listener.outgoing.SOAPCaller.call(SOAPCaller.java:192)   
at
org.ow2.petals.binding.soap.listener.outgoing.JBIListener.invokeCaller(JBIListener.java:132)   
at
org.ow2.petals.binding.soap.listener.outgoing.JBIListener.onJBIMessage(JBIListener.java:156)   
at
org.ow2.petals.component.framework.process.MessageExchangeProcessor.processInOutAsProvider(MessageExchangeProcessor.java:637)   
at
org.ow2.petals.component.framework.process.MessageExchangeProcessor.processAsProvider(MessageExchangeProcessor.java:372)   
at
org.ow2.petals.component.framework.process.MessageExchangeProcessor.process(MessageExchangeProcessor.java:234)   
at
org.ow2.petals.component.framework.process.MessageExchangeProcessor.run(MessageExchangeProcessor.java:177)   
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)   
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)   
at java.lang.Thread.run(Thread.java:679)*

Please, can somebody help me...? 

_______________________________________________
If you reply to this email, your message will be added to the discussion below:
http://forum.petalslink.com/Testing-a-published-service-on-the-ESB-which-is-running-on-a-separated-server-with-petals-console-tp4025172.html
To start a new topic under Users (get help, provide help), email ml-node+s974793n2681628h42 at n3.nabble.com
To unsubscribe from Users (get help, provide help), visit http://forum.petalslink.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=2681628&code=dXNlcnNAZm9ydW0ucGV0YWxzbGluay5vcmd8MjY4MTYyOHwtOTE3MDU0NjU4
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://forum-list.petalslink.org/pipermail/users/attachments/20120716/62c112fa/attachment-0001.html>


More information about the Users mailing list