axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "robert lazarski (JIRA)" <>
Subject [jira] Commented: (AXIS2-317) WSDL2java generated classes throw "Operation Not found" when wsdl soapAction=""
Date Thu, 20 Apr 2006 19:01:14 GMT
    [ ] 

robert lazarski commented on AXIS2-317:

I just tested the latest svn and this issue still exists. Really its a bug, because the spec


A WSDL Description that has:

<soapbind:operation />


<soapbind:operation soapAction="" />

results in a message with a corresponding SOAPAction HTTP header field as follows:

SOAPAction: ""

The following WSDL:

<?xml version="1.0" encoding="UTF-8"?>

<definitions name="SimpleService" targetNamespace="http://simpleNS" xmlns:tns="http://simpleNS"
xmlns="" xmlns:xsd="" xmlns:soap=""
    <schema targetNamespace="http://simpleNS/types" xmlns:tns="http://simpleNS/types" xmlns:soap11-enc=""
xmlns:xsi="" xmlns:wsdl=""
      <import namespace=""/>
      <element name="simpleLogin">
            <element name="user_name" type="xsd:string"/>
            <element name="user_password" type="xsd:string"/>
      <element name="simpleLoginResponse">
            <element name="soap_session_id" type="xsd:string"/>
            <element name="web_user_name" type="xsd:string"/>
  <message name="SimpleEndpoint_simpleLogin">
     <part name="parameters" element="ns2:simpleLogin"/>
  <message name="SimpleEndpoint_simpleLoginResponse">
    <part name="result" element="ns2:simpleLoginResponse"/>
  <portType name="SimpleEndpoint">
    <operation name="simpleLogin">
      <input message="tns:SimpleEndpoint_simpleLogin" name="SimpleEndpoint_simpleLogin"/>
      <output message="tns:SimpleEndpoint_simpleLoginResponse" name="SimpleEndpoint_simpleLoginResponse"/>
  <binding name="SimpleEndpointBinding" type="tns:SimpleEndpoint">
    <soap:binding transport="" style="document"/>
    <operation name="simpleLogin">
      <soap:operation soapAction=""/>
      <input name="SimpleEndpoint_simpleLogin">
        <soap:body use="literal"/>
      <output name="SimpleEndpoint_simpleLoginResponse">
        <soap:body use="literal"/>
  <service name="SimpleService">
    <port name="SimpleEndpointPort" binding="tns:SimpleEndpointBinding">
      <soap:address location="http://localhost:8080/axis2/services/SimpleService"/></port></service></definitions>

Throws an exception on the client side when invoking the service: 

     [java]     at
     [java] Caused by: org.apache.axis2.AxisFault: Service not found operation terminated
     [java]     at org.apache.axis2.description.OutInAxisOperationClient.execute(
     [java]     at org.simple.endpoint.SimpleServiceStub.simpleLogin(
     [java]     at org.Tester.main(
     [java]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
     [java]     at sun.reflect.NativeMethodAccessorImpl.invoke(
     [java]     at sun.reflect.DelegatingMethodAccessorImpl.invoke(
     [java]     at java.lang.reflect.Method.invoke(
     [java]     at
     [java]     at
     [java]     ... 13 more
     [java] Caused by: java.lang.Exception: org.apache.axis2.AxisFault: Service not found
operation terminated !!
     [java]     at org.apache.axis2.engine.InstanceDispatcher.fillContextsFromSessionContext(
     [java]     at org.apache.axis2.engine.InstanceDispatcher.invoke(
     [java]     at org.apache.axis2.engine.Phase.invoke(
     [java]     at org.apache.axis2.engine.AxisEngine.invoke(
     [java]     at org.apache.axis2.engine.AxisEngine.receive(
     [java]     at org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(
     [java]     at org.apache.axis2.transport.http.AxisServlet.doPost(
     [java]     at javax.servlet.http.HttpServlet.service(
     [java]     at javax.servlet.http.HttpServlet.service(

The problem disappears and the code works fine when defining soapAction in the wsdl to be:

<soap:operation soapAction="simpleLogin"/>

> WSDL2java generated classes throw "Operation Not found" when wsdl soapAction=""
> -------------------------------------------------------------------------------
>          Key: AXIS2-317
>          URL:
>      Project: Apache Axis 2.0 (Axis2)
>         Type: Improvement

>   Components: databinding
>     Versions: 0.92
>  Environment: java 5.0 , linux
>     Reporter: trebor iksrazal
>     Assignee: Ajith Harshana Ranabahu
>     Priority: Minor

> With rcp encoded wsdl's, often you'll put soapAction="" . With doc/lit, you need a soapAction
defined, otherwise DispatchingChecker throws "Operation Not found" . An improvement would
be some warning or error message identifying an empty string for soapAction does not work
for doc/lit . 

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
For more information on JIRA, see:

View raw message