[esb-java-user] invoking websphere service
Paul Fremantle
paul at wso2.com
Fri Dec 19 08:17:53 PST 2008
You need to get it into the form that the Web Service expects it. If you
can send a sample of a SOAP message that works, I can show you a simple
transformation.
Paul
Schmilinsky, Remsy wrote:
> Hi Paul, thanks for the feedback. I am simply sending some text through
> jms ,like "hello world", the esb picks it up and sends it to the web
> service.
>
> -----Original Message-----
> From: esb-java-user-bounces at wso2.org
> [mailto:esb-java-user-bounces at wso2.org] On Behalf Of Paul Fremantle
> Sent: December 19, 2008 10:28 AM
> To: esb-java-user at wso2.org
> Subject: Re: [esb-java-user] invoking websphere service
>
> Remsy
>
> It looks like you are trying to link an ESB file or JMS text service
> with a WSDL defined endpoint.
>
> When you read files, JMS or other non-XML data into the ESB we logically
>
> create a SOAP envelope to handle that data. Usually that never leaves
> the ESB, because typically you would either transform it into XML or
> store it in another file. But you are sending it on to a Web Service,
> which is expecting some other XML format. You need to transform this
> using a mediator or E4X, XSL etc.
>
> If you give me some better ideas about what you are doing I can maybe
> help some more.
>
> Paul
>
> Schmilinsky, Remsy wrote:
>> Hi, I have an endpoint with a simple web service deployed on
> websphere.
>> I get a soap fault saying "Could not resolve to an operation. The
>> message contains an element named
>> ""{http://ws.apache.org/commons/ns/payload}text"", but this does not
>> match any operation of the target port.
>>
>> Endpoint is configured like this:
>>
>> <syn:endpoint name="testWS">
>> <syn:address uri="http://localhost:9080/testWS/services/Test"
>> format="soap11">
>> <enableAddressing/>
>> </syn:address>
>> </syn:endpoint>
>>
>> Do you know how to resolve this? Below is the full response:
>>
>> <?xml version='1.0' encoding='utf-8'?><soapenv:Envelope
>> xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
>> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>> xmlns:xsd="http://www.w3.org/2001/XMLSchema"
>>
> xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"><soapenv:Body>
> <soapenv:Fault><faultcode>soapenv:Client</faultcode><faultstring>WSWS327
>> 7E: Error: Could not resolve to an operation. The message contains an
>> element named ""{http://ws.apache.org/commons/ns/payload}text"", but
>> this does not match any operation of the target port. Debug: name:
>> services/Test
>> implClass: class ca.remsy.test.Test
>> implClassLoader:
>> com.ibm.ws.classloader.CompoundClassLoader at 6b1c6b1c
>> Local ClassPath: C:\Documents and
>>
> Settings\remsy\IBM\rationalsdp7.0\workspace\testWS\WebContent\WEB-INF\cl
>> asses;C:\Documents and
>> Settings\remsy\IBM\rationalsdp7.0\workspace\testWS\WebContent
>> Delegation Mode: PARENT_FIRST
>> defaultNS: null
>> endpointURL: null
>> OperationDesc[0]:
>> name: processMessage
>> returnQName: processMessageReturn
>> returnType: {http://www.w3.org/2001/XMLSchema}string
>> returnClass: class java.lang.String
>> elementQName:{http://test.remsy.ca}processMessage
>> soapAction: processMessage
>> style: wrapped
>> use: literal
>> numInParams: 1
>> properties:
>> KEY(ResponseNamespace)
>> VALUE(http://test.remsy.ca)
>> KEY(ResponseLocalPart)
>> VALUE(processMessageResponse)
>> KEY(buildNum)
>> VALUE(cf90721.10)
>> KEY(ServiceQName)
>> VALUE({http://test.remsy.ca}TestService)
>> KEY(portTypeQName)
>> VALUE({http://test.remsy.ca}Test)
>> KEY(outputName)
>> VALUE(processMessageResponse)
>> KEY(inputMessageQName)
>> VALUE({http://test.remsy.ca}processMessageRequest)
>> KEY(outputMessageQName)
>> VALUE({http://test.remsy.ca}processMessageResponse)
>> KEY(usingAddressing)
>> VALUE(false)
>> KEY(inputName)
>> VALUE(processMessageRequest)
>> KEY(targetNamespace)
>> VALUE(http://test.remsy.ca)
>> method:public java.lang.String
>> ca.remsy.test.Test.processMessage(java.lang.String)
>> ParameterDesc[0]:
>> identity:
>> com.ibm.ws.webservices.engine.description.ParameterDesc at cec0cec
>> name: msg
>> mode: IN
>> isReturn: false
>> typeQName: {http://www.w3.org/2001/XMLSchema}string
>> javaType: class java.lang.String
>> javaSigType:class java.lang.String
>> inHeader: false
>> outHeader: false
>> minOccursIs0:false
>> maxOccursIs1:true
>> properties:
>> KEY(partName)
>> VALUE(string)
>> KEY(partQNameString)
>> VALUE({http://www.w3.org/2001/XMLSchema}string)
>>
>>
>> </faultstring></soapenv:Fault></soapenv:Body></soapenv:Envelope>
>>
>>
>>
>> _______________________________________________
>> Esb-java-user mailing list
>> Esb-java-user at wso2.org
>> https://wso2.org/cgi-bin/mailman/listinfo/esb-java-user
>>
>
--
Paul Fremantle
CTO and Co-Founder, WSO2
OASIS WS-RX TC Co-chair
VP, Apache Synapse
Office: +44 844 484 8143
Cell: +44 798 447 4618
blog: http://pzf.fremantle.org
paul at wso2.com
"Oxygenating the Web Service Platform", www.wso2.com
More information about the Esb-java-user
mailing list