Hi, I made some test at my bench,

I don't know wether you saw stack like "namespace mismatch", If you do, please 
use "wsdlElement" and save a copy of the provider's wsdl at your classpath.



Bin CRL Wang <[EMAIL PROTECTED]> wrote: Hi,

There is no wsdl file in the test application, just using binding.ws uri 
to call a web service publised through axis2 v1.3, but it does not work...
It's a very simple test case, and I wonder there is sample to show that 
binding.ws could work with an exteneral web service which is not published 
by tuscany ws.bingding.
When I removed the , the result:

Injected helloWorldService
Called getGreetings
Exception in thread "main" java.lang.reflect.UndeclaredThrowableException
        at $Proxy5.getGreetings(Unknown Source)
        at helloworld.HelloWorldServiceComponent.getGreetings(
HelloWorldServiceComponent.java:30)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at 
org.apache.tuscany.sca.implementation.java.invocation.JavaImplementationInvoker.invoke(
JavaImplementationInvoker.java:105)
        at 
org.apache.tuscany.sca.core.databinding.wire.PassByValueInteceptor.invoke(
PassByValueInteceptor.java:49)
        at 
org.apache.tuscany.sca.core.invocation.JDKInvocationHandler.invoke(
JDKInvocationHandler.java:233)
        at 
org.apache.tuscany.sca.core.invocation.JDKInvocationHandler.invoke(
JDKInvocationHandler.java:130)
        at $Proxy5.getGreetings(Unknown Source)
        at helloworld.HelloWorldClient.main(HelloWorldClient.java:33)
Caused by: org.apache.axis2.AxisFault: A required header representing a 
Message Addressing Property is not present
        at org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(
Utils.java:486)
        at 
org.apache.axis2.description.OutInAxisOperationClient.handleResponse(
OutInAxisOperation.java:343)
        at org.apache.axis2.description.OutInAxisOperationClient.send(
OutInAxisOperation.java:389)
        at 
org.apache.axis2.description.OutInAxisOperationClient.executeImpl(
OutInAxisOperation.java:211)
        at org.apache.axis2.client.OperationClient.execute(
OperationClient.java:163)
        at 
org.apache.tuscany.sca.binding.ws.axis2.Axis2BindingInvoker.invokeTarget(
Axis2BindingInvoker.java:102)
        at 
org.apache.tuscany.sca.binding.ws.axis2.Axis2BindingInvoker.invoke(
Axis2BindingInvoker.java:77)
        at 
org.apache.tuscany.sca.core.databinding.wire.DataTransformationInteceptor.invoke(
DataTransformationInteceptor.java:73)
        at 
org.apache.tuscany.sca.core.invocation.JDKInvocationHandler.invoke(
JDKInvocationHandler.java:233)
        at 
org.apache.tuscany.sca.core.invocation.JDKInvocationHandler.invoke(
JDKInvocationHandler.java:130)
        ... 12 more


Best Regards,

Wang Bin,Íõ±ó
R&D Engineer,Service Building Technologies
IBM China Research Lab
TEL: 86-10-58748660
E-mail: [EMAIL PROTECTED]


       
---------------------------------
Be a better Heartthrob. Get better relationship answers from someone who knows.
Yahoo! Answers - Check it out. 

Reply via email to