You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "Davanum Srinivas (JIRA)" <ax...@ws.apache.org> on 2005/07/20 17:25:55 UTC

[jira] Created: (AXIS-2130) Axis does not generate wrapped wsdl properly

Axis does not generate wrapped wsdl properly
--------------------------------------------

         Key: AXIS-2130
         URL: http://issues.apache.org/jira/browse/AXIS-2130
     Project: Apache Axis
        Type: Bug
    Reporter: Davanum Srinivas
 Attachments: correct.xml

Email from John Baker: http://marc.theaimsgroup.com/?l=axis-user&m=112185246121229&w=2

WSDL file: http://www.javasystemsolutions.com/serviceRequestConnector.wsdl



-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Commented: (AXIS-2130) Axis does not generate wrapped wsdl properly

Posted by "John Baker (JIRA)" <ax...@ws.apache.org>.
    [ http://issues.apache.org/jira/browse/AXIS-2130?page=comments#action_12316246 ] 

John Baker commented on AXIS-2130:
----------------------------------

Anne also says:

John,

You can tell that an operation is wrapped when:

- it's defined as document/literal
- the input element name is the same as the operation name
- the input and output elements are defined as complexTypes using the
<sequence> construct.

All of these things apply to the SubmitGeneralServiceRequest operation.
It is definitely wrapped. If Axis is emitting unwrapped messages,
there's something seriously wrong with Axis. The method signature for
this operation should be:

  ServiceRequestIdentification
SubmitGeneralServiceRequest(SubmittedGeneralServiceRequest)

Anne


> Axis does not generate wrapped wsdl properly
> --------------------------------------------
>
>          Key: AXIS-2130
>          URL: http://issues.apache.org/jira/browse/AXIS-2130
>      Project: Apache Axis
>         Type: Bug
>     Reporter: Davanum Srinivas
>  Attachments: correct.xml, incorrect.xml
>
> Email from John Baker: http://marc.theaimsgroup.com/?l=axis-user&m=112185246121229&w=2
> WSDL file: http://www.javasystemsolutions.com/serviceRequestConnector.wsdl

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Commented: (AXIS-2130) Axis does not generate wrapped wsdl properly

Posted by "Davanum Srinivas (JIRA)" <ax...@ws.apache.org>.
    [ http://issues.apache.org/jira/browse/AXIS-2130?page=comments#action_12316256 ] 

Davanum Srinivas commented on AXIS-2130:
----------------------------------------

As usual Anne's right....BUT there is a caveat. problem is the wrapped flag in our symbol table is for the whole wsdl. so if there are problems with other operations, we switch off the flag for all operations. In latest cvs, i have added some warnings that show up on the command prompt when this happens. For this this wsdl, the problem(s) are as follows. If you fix them in the wsdl, then you will get the wrapped behavior.

Warning: Element {http://www.caps-solutions.co.uk/webservices/connectors/servicerequest/messagetypes}AddComplainantsToDogServiceRequestResponse has no type declaration, hence it is not a wrapper element. Switching off wrapped mode.
Warning: Element {http://www.caps-solutions.co.uk/webservices/connectors/servicerequest/messagetypes}CloseGeneralServiceRequestResponse has no type declaration, hence it is not a wrapper element. Switching off wrapped mode.
Warning: Element {http://www.caps-solutions.co.uk/webservices/connectors/servicerequest/messagetypes}CloseFoodServiceRequestResponse has no type declaration, hence it is not a wrapper element. Switching off wrapped mode.
Warning: Element {http://www.caps-solutions.co.uk/webservices/connectors/servicerequest/messagetypes}CloseContractServiceRequestResponse has no type declaration, hence it is not a wrapper element. Switching off wrapped mode.
Warning: Element {http://www.caps-solutions.co.uk/webservices/connectors/servicerequest/messagetypes}CloseDogServiceRequestResponse has no type declaration, hence it is not a wrapper element. Switching off wrapped mode.
Warning: Element {http://www.caps-solutions.co.uk/webservices/connectors/servicerequest/messagetypes}ClosePestServiceRequestResponse has no type declaration, hence it is not a wrapper element. Switching off wrapped mode.
Warning: Element {http://www.caps-solutions.co.uk/webservices/connectors/servicerequest/messagetypes}CancelPestServiceRequestResponse has no type declaration, hence it is not a wrapper element. Switching off wrapped mode.

thanks,
dims

> Axis does not generate wrapped wsdl properly
> --------------------------------------------
>
>          Key: AXIS-2130
>          URL: http://issues.apache.org/jira/browse/AXIS-2130
>      Project: Apache Axis
>         Type: Bug
>     Reporter: Davanum Srinivas
>  Attachments: correct.xml, incorrect.xml
>
> Email from John Baker: http://marc.theaimsgroup.com/?l=axis-user&m=112185246121229&w=2
> WSDL file: http://www.javasystemsolutions.com/serviceRequestConnector.wsdl

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Commented: (AXIS-2130) Axis does not generate wrapped wsdl properly

Posted by "John Baker (JIRA)" <ax...@ws.apache.org>.
    [ http://issues.apache.org/jira/browse/AXIS-2130?page=comments#action_12316247 ] 

John Baker commented on AXIS-2130:
----------------------------------

And it's worth pointing out that my numerous maiing list postings are probably confusing given I've been on a steep learning curve while being confused over why Axis was not generating wrapped messages.

> Axis does not generate wrapped wsdl properly
> --------------------------------------------
>
>          Key: AXIS-2130
>          URL: http://issues.apache.org/jira/browse/AXIS-2130
>      Project: Apache Axis
>         Type: Bug
>     Reporter: Davanum Srinivas
>  Attachments: correct.xml, incorrect.xml
>
> Email from John Baker: http://marc.theaimsgroup.com/?l=axis-user&m=112185246121229&w=2
> WSDL file: http://www.javasystemsolutions.com/serviceRequestConnector.wsdl

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Updated: (AXIS-2130) Axis does not generate wrapped wsdl properly

Posted by "Davanum Srinivas (JIRA)" <ax...@ws.apache.org>.
     [ http://issues.apache.org/jira/browse/AXIS-2130?page=all ]

Davanum Srinivas updated AXIS-2130:
-----------------------------------

    Attachment: correct.xml

Correct.xml (not generated by axis)

> Axis does not generate wrapped wsdl properly
> --------------------------------------------
>
>          Key: AXIS-2130
>          URL: http://issues.apache.org/jira/browse/AXIS-2130
>      Project: Apache Axis
>         Type: Bug
>     Reporter: Davanum Srinivas
>  Attachments: correct.xml
>
> Email from John Baker: http://marc.theaimsgroup.com/?l=axis-user&m=112185246121229&w=2
> WSDL file: http://www.javasystemsolutions.com/serviceRequestConnector.wsdl

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Commented: (AXIS-2130) Axis does not generate wrapped wsdl properly

Posted by "Davanum Srinivas (JIRA)" <ax...@ws.apache.org>.
    [ http://issues.apache.org/jira/browse/AXIS-2130?page=comments#action_12316244 ] 

Davanum Srinivas commented on AXIS-2130:
----------------------------------------

WSDL is actually at http://www.javasystemsolutions.com/ws/serviceRequestConnector.wsdl 

> Axis does not generate wrapped wsdl properly
> --------------------------------------------
>
>          Key: AXIS-2130
>          URL: http://issues.apache.org/jira/browse/AXIS-2130
>      Project: Apache Axis
>         Type: Bug
>     Reporter: Davanum Srinivas
>  Attachments: correct.xml, incorrect.xml
>
> Email from John Baker: http://marc.theaimsgroup.com/?l=axis-user&m=112185246121229&w=2
> WSDL file: http://www.javasystemsolutions.com/serviceRequestConnector.wsdl

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Commented: (AXIS-2130) Axis does not generate wrapped wsdl properly

Posted by "Davanum Srinivas (JIRA)" <ax...@ws.apache.org>.
    [ http://issues.apache.org/jira/browse/AXIS-2130?page=comments#action_12316249 ] 

Davanum Srinivas commented on AXIS-2130:
----------------------------------------

Add this main method to the ServiceRequestConnectorSoapBindingStub:

      public static void main(String[] argv)
      {
        
uk.co.caps_solutions.www.schema.uniform._72b.servicerequest.sr.srtypes.SubmittedServiceRequestIdentificationTypeAlternativeReferences 
alternativeReferences
             = new 
uk.co.caps_solutions.www.schema.uniform._72b.servicerequest.sr.srtypes.SubmittedServiceRequestIdentificationTypeAlternativeReferences();

        
uk.co.caps_solutions.www.schema.uniform._72b.servicerequest.sr.srtypes.SubmittedServiceRequestIdentificationType
          type = new 
uk.co.caps_solutions.www.schema.uniform._72b.servicerequest.sr.srtypes.SubmittedServiceRequestIdentificationType
            (alternativeReferences);

        
uk.co.caps_solutions.www.schema.uniform._72b.servicerequest.sr.srtypes.SubmittedSiteLocationType
          location = new 
uk.co.caps_solutions.www.schema.uniform._72b.servicerequest.sr.srtypes.SubmittedSiteLocationType
            ("A", "B");
        
uk.co.caps_solutions.www.schema.uniform._72b.servicerequest.sr.srtypes.SubmittedGeneralServiceRequestTypeComplainants
          comps = new 
uk.co.caps_solutions.www.schema.uniform._72b.servicerequest.sr.srtypes.SubmittedGeneralServiceRequestTypeComplainants
            ();

        
uk.co.caps_solutions.www.schema.uniform._72b.servicerequest.sr.srtypes.SubmittedGeneralServiceRequestType
          reqType = new 
uk.co.caps_solutions.www.schema.uniform._72b.servicerequest.sr.srtypes.SubmittedGeneralServiceRequestType
            (
              type, "A", location, "B", "C", comps, "D", "E", "F", "G", 
"H"
            );
        try
        {
          ServiceRequestConnectorSoapBindingStub stub = new 
ServiceRequestConnectorSoapBindingStub(
            new URL("http://localhost:9090"), null);
          stub.submitGeneralServiceRequest(reqType);
        }
        catch (Exception e)
        { e.printStackTrace(); }

      }

> Axis does not generate wrapped wsdl properly
> --------------------------------------------
>
>          Key: AXIS-2130
>          URL: http://issues.apache.org/jira/browse/AXIS-2130
>      Project: Apache Axis
>         Type: Bug
>     Reporter: Davanum Srinivas
>  Attachments: correct.xml, incorrect.xml
>
> Email from John Baker: http://marc.theaimsgroup.com/?l=axis-user&m=112185246121229&w=2
> WSDL file: http://www.javasystemsolutions.com/serviceRequestConnector.wsdl

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Resolved: (AXIS-2130) Axis does not generate wrapped wsdl properly

Posted by "Davanum Srinivas (JIRA)" <ax...@ws.apache.org>.
     [ http://issues.apache.org/jira/browse/AXIS-2130?page=all ]
     
Davanum Srinivas resolved AXIS-2130:
------------------------------------

    Resolution: Fixed

adding warnings in code when we switch off wrapped mode.

> Axis does not generate wrapped wsdl properly
> --------------------------------------------
>
>          Key: AXIS-2130
>          URL: http://issues.apache.org/jira/browse/AXIS-2130
>      Project: Apache Axis
>         Type: Bug
>     Reporter: Davanum Srinivas
>  Attachments: correct.xml, incorrect.xml
>
> Email from John Baker: http://marc.theaimsgroup.com/?l=axis-user&m=112185246121229&w=2
> WSDL file: http://www.javasystemsolutions.com/serviceRequestConnector.wsdl

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Commented: (AXIS-2130) Axis does not generate wrapped wsdl properly

Posted by "John Baker (JIRA)" <ax...@ws.apache.org>.
    [ http://issues.apache.org/jira/browse/AXIS-2130?page=comments#action_12316245 ] 

John Baker commented on AXIS-2130:
----------------------------------

Anne Manes says:

John,

Per the WSDL, SubmitGeneralServiceRequest is wrapped.

Pertinent bits:

      <xs:element name="SubmitGeneralServiceRequest">
        <xs:complexType>
          <xs:sequence>
            <xs:element ref="sr:SubmittedGeneralServiceRequest"/>
          </xs:sequence>
        </xs:complexType>
      </xs:element>
      <xs:element name="SubmitGeneralServiceRequestResponse">
        <xs:complexType>
          <xs:sequence>
            <xs:element ref="sr:ServiceRequestIdentification"/>
          </xs:sequence>
        </xs:complexType>
      </xs:element>

  <wsdl:message name="SubmitGeneralServiceRequestInput">
    <wsdl:part name="parameters" element="wstypes:SubmitGeneralServiceRequest"/>
  </wsdl:message>
  <wsdl:message name="SubmitGeneralServiceRequestOutput">
    <wsdl:part name="parameters"
element="wstypes:SubmitGeneralServiceRequestResponse"/>
  </wsdl:message>

    <wsdl:operation name="SubmitGeneralServiceRequest">
      <wsdl:input message="tns:SubmitGeneralServiceRequestInput"/>
      <wsdl:output message="tns:SubmitGeneralServiceRequestOutput"/>
    </wsdl:operation>

    <wsdl:operation name="SubmitGeneralServiceRequest">
      <soap:operation
soapAction="http://www.caps-solutions.co.uk/webservices/connectors/servicerequest/actions/SubmitGeneralServiceRequest"/>
      <wsdl:input>
        <soap:body use="literal"/>
      </wsdl:input>
      <wsdl:output>
        <soap:body use="literal"/>
      </wsdl:output>
    </wsdl:operation>

(I removed the erroroneous namespace attributes).

Per this description, the request message must submit the
<wstypes:SubmitGeneralServiceRequest> element, and the service must
return the
<wstypes:SubmitGeneralServiceRequestResponse> element.

Anne


> Axis does not generate wrapped wsdl properly
> --------------------------------------------
>
>          Key: AXIS-2130
>          URL: http://issues.apache.org/jira/browse/AXIS-2130
>      Project: Apache Axis
>         Type: Bug
>     Reporter: Davanum Srinivas
>  Attachments: correct.xml, incorrect.xml
>
> Email from John Baker: http://marc.theaimsgroup.com/?l=axis-user&m=112185246121229&w=2
> WSDL file: http://www.javasystemsolutions.com/serviceRequestConnector.wsdl

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Updated: (AXIS-2130) Axis does not generate wrapped wsdl properly

Posted by "Davanum Srinivas (JIRA)" <ax...@ws.apache.org>.
     [ http://issues.apache.org/jira/browse/AXIS-2130?page=all ]

Davanum Srinivas updated AXIS-2130:
-----------------------------------

    Attachment: incorrect.xml

incorrect xml generated by axis nightly.

> Axis does not generate wrapped wsdl properly
> --------------------------------------------
>
>          Key: AXIS-2130
>          URL: http://issues.apache.org/jira/browse/AXIS-2130
>      Project: Apache Axis
>         Type: Bug
>     Reporter: Davanum Srinivas
>  Attachments: correct.xml, incorrect.xml
>
> Email from John Baker: http://marc.theaimsgroup.com/?l=axis-user&m=112185246121229&w=2
> WSDL file: http://www.javasystemsolutions.com/serviceRequestConnector.wsdl

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira