I added a comment to TUSCANY-1758 about this.  The exception occurs
because Axis2 requires WS-Addressing headers if the addressing module
is engaged in axis2.xml.

If you comment out the line
  <module ref="addressing"/>
in the axis2.xml file in Axis2's conf directory, then Tuscany can
invoke the Axis2 service successfully.

This issue needs further investigation to determine the correct
solution.  I think there are three problems:
 1. (Axis2 problem) The WSDL for a service that requires WS-Addressing
    headers is supposed to include a wsaw:UsingAddressing element with
    the wsdl:required="true" attribute, but Axis2 is not putting this
    in its WSDL.
 2. (Application problem) To enusre interoperability, the Tuscany
    application should be using WSDL provided by the service that it
    is invoking.  This application is not using WSDL.
 3. (Tuscany problem) Tuscany is not currently looking at the WSDL
    to see whether it contains a wsaw:UsingAddressing element with the
    wsdl:required="true" attribute.  It should look for this element
    and generate WS-Addressing headers on service requests if the
    element is present.

  Simon

shaoguang geng wrote:

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.



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to