axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Martin Gainty <mgai...@hotmail.com>
Subject RE: [Axis2] AXIS2-4170 status quest
Date Sat, 12 Mar 2011 02:33:10 GMT

then you should use the wsdl2.0 namespaces defined at
http://www.w3.org/2006/01/wsdMartin Gainty 
______________________________________________ 
Verzicht und Vertraulichkeitanmerkung
 
Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten
wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist
unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet
keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen
wir keine Haftung fuer den Inhalt uebernehmen.






Date: Fri, 11 Mar 2011 16:34:12 -0800
Subject: Re: [Axis2] AXIS2-4170 status quest
From: pingpinganan@gmail.com
To: java-dev@axis.apache.org

Hi Martin,

Thanks for your suggestion.  However, this case is probably different from other cases that
you saw.  This is actually a WSDL 2.0 versus the regular WSDL 1.1 test.  The issue indicates
Axis2 implementation is broken while attempting to generate code based on WSDL 2.0.  In the
case of WSDL 1.1, it probably works well.  I guess your modification is for WSDL 1.1.  Please
let me know if I miss anything here.


Thank you,

Ping



On Thu, Mar 10, 2011 at 3:43 PM, Martin Gainty <mgainty@hotmail.com> wrote:






Ping-
<!-- edit each of the messages declared below must reflect 
      input(request) and 

      output(response) 
      corresponding to each message declaration (these message formats should be declared
in the imported xsd -->

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


<!--  ****************************SOFTWARE LICENSING NOTICE ************************ -->
<!-- Here In the West we pay attention to software licensing -->
<!-- We need to acknowledges the work of all committee members who contributed in implementing
Axis Web Services -->

<!--  ****************************SOFTWARE LICENSING NOTICE ************************ -->

<!--
  ~ Licensed to the Apache Software Foundation (ASF) under one
  ~ or more contributor license agreements. See the NOTICE file

  ~ distributed with this work for additional information
  ~ regarding copyright ownership. The ASF licenses this file
  ~ to you under the Apache License, Version 2.0 (the
  ~ "License"); you may not use this file except in compliance

  ~ with the License. You may obtain a copy of the License at
  ~
  ~ http://www.apache.org/licenses/LICENSE-2.0
  ~
  ~ Unless required by applicable law or agreed to in writing,

  ~ software distributed under the License is distributed on an
  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  ~ KIND, either express or implied. See the License for the
  ~ specific language governing permissions and limitations

  ~ under the License.
  -->
<!-- description xmlns="http://www.w3.org/ns/wsdl"
             targetNamespace="http://www.csapi.org/wsdl/parlayx/sms/send/v2_2/service"

             xmlns:tns="http://www.csapi.org/wsdl/parlayx/sms/send/v2_2/service"
             xmlns:wsoap="http://www.w3.org/ns/wsdl/soap"

             xmlns:xsd="http://www.w3.org/2001/XMLSchema"
             xmlns:interface="http://www.csapi.org/wsdl/parlayx/sms/send/v2_2/interface" -->

<wsdl:definitions xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"
xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/"
xmlns:ns1="http://org.apache.axis2/xsd" xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl"
xmlns:ax21="http://data.complex.tempuri.org/xsd" xmlns:ns="http://complex.tempuri.org" xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:ax22="http://arrays.data.complex.tempuri.org/xsd"
targetNamespace="http://complex.tempuri.org" xmlns:wsoap="http://www.w3.org/ns/wsdl/soap"
xmlns:interface="http://www.csapi.org/wsdl/parlayx/sms/send/v2_2/interface" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
            


<!-- import namespace="http://www.csapi.org/wsdl/parlayx/sms/send/v2_2/interface"
location="parlayx_sms_send_interface_2_2.wsdl2"/ -->

<xsd:import namespace="http://www.csapi.org/wsdl/parlayx/sms/send/v2_2/interface" schemaLocation="parlayx_common_types_2_1.xsd"
/>


<!-- edit each of the messages to reflect input(request) and 
output(response) corresponding to definitions found in xsd -->
    <wsdl:message name="retIntRequest">
        <wsdl:part name="parameters" element="ns:retInt"/>
    </wsdl:message>

    <wsdl:message name="retIntResponse">
        <wsdl:part name="parameters" element="ns:retIntResponse"/>
    </wsdl:message>
    <wsdl:message name="retGuidRequest">

        <wsdl:part name="parameters" element="ns:retGuid"/>
    </wsdl:message>
    <wsdl:message name="retGuidResponse">
        <wsdl:part name="parameters" element="ns:retGuidResponse"/>

    </wsdl:message>
    <wsdl:message name="retUriRequest">
        <wsdl:part name="parameters" element="ns:retUri"/>
    </wsdl:message>
    <wsdl:message name="retUriResponse">

        <wsdl:part name="parameters" element="ns:retUriResponse"/>
    </wsdl:message>
    <wsdl:message name="retULongRequest">
        <wsdl:part name="parameters" element="ns:retULong"/>

    </wsdl:message>
    <wsdl:message name="retULongResponse">
        <wsdl:part name="parameters" element="ns:retULongResponse"/>
    </wsdl:message>
    <wsdl:message name="retDerivedClassRequest">

        <wsdl:part name="parameters" element="ns:retDerivedClass"/>
    </wsdl:message>
    <wsdl:message name="retDerivedClassResponse">
        <wsdl:part name="parameters" element="ns:retDerivedClassResponse"/>

    </wsdl:message>
    <wsdl:message name="retIntsRequest">
        <wsdl:part name="parameters" element="ns:retInts"/>
    </wsdl:message>
    <wsdl:message name="retIntsResponse">

        <wsdl:part name="parameters" element="ns:retIntsResponse"/>
    </wsdl:message>
    <wsdl:message name="retSingleRequest">
        <wsdl:part name="parameters" element="ns:retSingle"/>

    </wsdl:message>
    <wsdl:message name="retSingleResponse">
        <wsdl:part name="parameters" element="ns:retSingleResponse"/>
    </wsdl:message>
    <wsdl:message name="retArrayInt1DRequest">

        <wsdl:part name="parameters" element="ns:retArrayInt1D"/>
    </wsdl:message>
    <wsdl:message name="retArrayInt1DResponse">
        <wsdl:part name="parameters" element="ns:retArrayInt1DResponse"/>

    </wsdl:message>
    <wsdl:message name="retObjectRequest">
        <wsdl:part name="parameters" element="ns:retObject"/>
    </wsdl:message>
    <wsdl:message name="retObjectResponse">

        <wsdl:part name="parameters" element="ns:retObjectResponse"/>
    </wsdl:message>
    <wsdl:message name="retDoubleRequest">
        <wsdl:part name="parameters" element="ns:retDouble"/>

    </wsdl:message>
    <wsdl:message name="retDoubleResponse">
        <wsdl:part name="parameters" element="ns:retDoubleResponse"/>
    </wsdl:message>
    <wsdl:message name="retDateTimeRequest">

        <wsdl:part name="parameters" element="ns:retDateTime"/>
    </wsdl:message>
    <wsdl:message name="retDateTimeResponse">
        <wsdl:part name="parameters" element="ns:retDateTimeResponse"/>

    </wsdl:message>
    <wsdl:message name="retArray1DSNRequest">
        <wsdl:part name="parameters" element="ns:retArray1DSN"/>
    </wsdl:message>
    <wsdl:message name="retArray1DSNResponse">

        <wsdl:part name="parameters" element="ns:retArray1DSNResponse"/>
    </wsdl:message>
    <wsdl:message name="retStructSNSARequest">
        <wsdl:part name="parameters" element="ns:retStructSNSA"/>

    </wsdl:message>
    <wsdl:message name="retStructSNSAResponse">
        <wsdl:part name="parameters" element="ns:retStructSNSAResponse"/>
    </wsdl:message>

    <wsdl:message name="retArrayString2DRequest">
        <wsdl:part name="parameters" element="ns:retArrayString2D"/>
    </wsdl:message>
    <wsdl:message name="retArrayString2DResponse">

        <wsdl:part name="parameters" element="ns:retArrayString2DResponse"/>
    </wsdl:message>
    <wsdl:message name="retArrayString1DRequest">
        <wsdl:part name="parameters" element="ns:retArrayString1D"/>

    </wsdl:message>
    <wsdl:message name="retArrayString1DResponse">
        <wsdl:part name="parameters" element="ns:retArrayString1DResponse"/>
    </wsdl:message>

    <wsdl:message name="retEnumStringRequest">
        <wsdl:part name="parameters" element="ns:retEnumString"/>
    </wsdl:message>
    <wsdl:message name="retEnumStringResponse">

        <wsdl:part name="parameters" element="ns:retEnumStringResponse"/>
    </wsdl:message>
    <wsdl:message name="retLongRequest">
        <wsdl:part name="parameters" element="ns:retLong"/>

    </wsdl:message>
    <wsdl:message name="retLongResponse">
        <wsdl:part name="parameters" element="ns:retLongResponse"/>
    </wsdl:message>
    <wsdl:message name="retDecimalRequest">

        <wsdl:part name="parameters" element="ns:retDecimal"/>
    </wsdl:message>
    <wsdl:message name="retDecimalResponse">
        <wsdl:part name="parameters" element="ns:retDecimalResponse"/>

    </wsdl:message>
    <wsdl:message name="retEnumIntRequest">
        <wsdl:part name="parameters" element="ns:retEnumInt"/>
    </wsdl:message>
    <wsdl:message name="retEnumIntResponse">

        <wsdl:part name="parameters" element="ns:retEnumIntResponse"/>
    </wsdl:message>
    <wsdl:message name="retStructS1Request">
        <wsdl:part name="parameters" element="ns:retStructS1"/>

    </wsdl:message>
    <wsdl:message name="retStructS1Response">
        <wsdl:part name="parameters" element="ns:retStructS1Response"/>
    </wsdl:message>

    <wsdl:message name="retUShortRequest">
        <wsdl:part name="parameters" element="ns:retUShort"/>
    </wsdl:message>
    <wsdl:message name="retUShortResponse">

        <wsdl:part name="parameters" element="ns:retUShortResponse"/>
    </wsdl:message>
    <wsdl:message name="retStructSNRequest">
        <wsdl:part name="parameters" element="ns:retStructSN"/>

    </wsdl:message>
    <wsdl:message name="retStructSNResponse">
        <wsdl:part name="parameters" element="ns:retStructSNResponse"/>
    </wsdl:message>

    <wsdl:message name="retArrayDecimal1DRequest">
        <wsdl:part name="parameters" element="ns:retArrayDecimal1D"/>
    </wsdl:message>
    <wsdl:message name="retArrayDecimal1DResponse">

        <wsdl:part name="parameters" element="ns:retArrayDecimal1DResponse"/>
    </wsdl:message>
    <wsdl:message name="retStructSNSASRequest">
        <wsdl:part name="parameters" element="ns:retStructSNSAS"/>

    </wsdl:message>
    <wsdl:message name="retStructSNSASResponse">
        <wsdl:part name="parameters" element="ns:retStructSNSASResponse"/>
    </wsdl:message>

    <wsdl:message name="retArrayAnyType1DRequest">
        <wsdl:part name="parameters" element="ns:retArrayAnyType1D"/>
    </wsdl:message>
    <wsdl:message name="retArrayAnyType1DResponse">

        <wsdl:part name="parameters" element="ns:retArrayAnyType1DResponse"/>
    </wsdl:message>
    <wsdl:message name="retArrayDateTime1DRequest">
        <wsdl:part name="parameters" element="ns:retArrayDateTime1D"/>

    </wsdl:message>
    <wsdl:message name="retArrayDateTime1DResponse">
        <wsdl:part name="parameters" element="ns:retArrayDateTime1DResponse"/>
    </wsdl:message>

    <wsdl:message name="retQNameRequest">
        <wsdl:part name="parameters" element="ns:retQName"/>
    </wsdl:message>
    <wsdl:message name="retQNameResponse">

        <wsdl:part name="parameters" element="ns:retQNameResponse"/>
    </wsdl:message>
    <wsdl:message name="retByteArrayRequest">
        <wsdl:part name="parameters" element="ns:retByteArray"/>

    </wsdl:message>
    <wsdl:message name="retByteArrayResponse">
        <wsdl:part name="parameters" element="ns:retByteArrayResponse"/>
    </wsdl:message>

    <wsdl:message name="retCharRequest">
        <wsdl:part name="parameters" element="ns:retChar"/>
    </wsdl:message>
    <wsdl:message name="retCharResponse">

        <wsdl:part name="parameters" element="ns:retCharResponse"/>
    </wsdl:message>
    <wsdl:message name="retByteRequest">
        <wsdl:part name="parameters" element="ns:retByte"/>

    </wsdl:message>
    <wsdl:message name="retByteResponse">
        <wsdl:part name="parameters" element="ns:retByteResponse"/>
    </wsdl:message>
    <wsdl:message name="retSByteRequest">

        <wsdl:part name="parameters" element="ns:retSByte"/>
    </wsdl:message>
    <wsdl:message name="retSByteResponse">
        <wsdl:part name="parameters" element="ns:retSByteResponse"/>

    </wsdl:message>
    <wsdl:message name="retBoolRequest">
        <wsdl:part name="parameters" element="ns:retBool"/>
    </wsdl:message>
    <wsdl:message name="retBoolResponse">

        <wsdl:part name="parameters" element="ns:retBoolResponse"/>
    </wsdl:message>
    <wsdl:message name="retUIntRequest">
        <wsdl:part name="parameters" element="ns:retUInt"/>

    </wsdl:message>
    <wsdl:message name="retUIntResponse">
        <wsdl:part name="parameters" element="ns:retUIntResponse"/>
    </wsdl:message>
    <wsdl:message name="retDerivedClass2Request">

        <wsdl:part name="parameters" element="ns:retDerivedClass2"/>
    </wsdl:message>
    <wsdl:message name="retDerivedClass2Response">
        <wsdl:part name="parameters" element="ns:retDerivedClass2Response"/>

    </wsdl:message>
    <wsdl:message name="retFloatRequest">
        <wsdl:part name="parameters" element="ns:retFloat"/>
    </wsdl:message>
    <wsdl:message name="retFloatResponse">

        <wsdl:part name="parameters" element="ns:retFloatResponse"/>
    </wsdl:message>
    <wsdl:message name="retStringRequest">
        <wsdl:part name="parameters" element="ns:retString"/>

    </wsdl:message>
    <wsdl:message name="retStringResponse">
        <wsdl:part name="parameters" element="ns:retStringResponse"/>
    </wsdl:message>
    <wsdl:message name="retStringsRequest">

        <wsdl:part name="parameters" element="ns:retStrings"/>
    </wsdl:message>
    <wsdl:message name="retStringsResponse">
        <wsdl:part name="parameters" element="ns:retStringsResponse"/>

    </wsdl:message>
    <wsdl:message name="retShortRequest">
        <wsdl:part name="parameters" element="ns:retShort"/>
    </wsdl:message>
    <wsdl:message name="retShortResponse">

        <wsdl:part name="parameters" element="ns:retShortResponse"/>
    </wsdl:message>
  
    <wsdl:portType name="ComplexDataTypesPortType">
       <!--each operation has a operation-name as well as input and output messages -->

        <!-- wsdl:operation ref="interface:sendSms" wsoap:action="" -->
        <wsdl:operation name="sendSms" wsoap:action="" >
      
         <!-- Supply the message (format) from the xsd to message-->

          <!-- Supply the return value from the action to the action in wsaw:Action -->
            <wsdl:input message="ns:retIntRequest" wsaw:Action="urn:retInt"/>
            <wsdl:output message="ns:retIntResponse" wsaw:Action="urn:retIntResponse"/>
       

        </wsdl:operation>
        <wsdl:operation name="sendSmsLogo" wsoap:action="">
            <wsdl:input message="ns:retGuidRequest" wsaw:Action="urn:retGuid"/>

            <wsdl:output message="ns:retGuidResponse" wsaw:Action="urn:retGuidResponse"/>
        </wsdl:operation>
        <wsdl:operation name="sendSmsRingtone" wsoap:action="">

            <wsdl:input message="ns:retUriRequest" wsaw:Action="urn:retUri"/>
            <wsdl:output message="ns:retUriResponse" wsaw:Action="urn:retUriResponse"/>

        </wsdl:operation>
        <wsdl:operation name="getSmsDeliveryStatus" wsoap:action="">
            <wsdl:input message="ns:retULongRequest" wsaw:Action="urn:retULong"/>

            <wsdl:output message="ns:retULongResponse" wsaw:Action="urn:retULongResponse"/>
        </wsdl:operation>
  </wsdl:portType>  

<!-- place a binding for each SOAP format you want to support (and which transport you
will use) -->


  <wsdl:binding name="ComplexDataTypesSoap11Binding" type="ns:ComplexDataTypesPortType">
      <soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document" name="SendSmsBinding"
type="ns:ComplexDataTypesPortType"/>

        <!-- wsoap:version="1.1" -->       
        <!-- wsoap:protocol="http://www.w3.org/2006/01/soap11/bindings/HTTP" -->   
   

        <!-- interface="interface:SendSms" -->       
        <!-- type="http://www.w3.org/ns/wsdl/soap" -->       

<!--we can handle each fault in the operation's code -->

        <!-- fault ref="interface:PolicyException"/ -->
        <!-- fault ref="interface:ServiceException"/ -->

<!-- for now we can declare each operation to be of style document (instead of rpc) -->

<!-- this is the default style supported for Axis2 -->
        <wsdl:operation name="sendSms" wsoap:action="">
            <soap:operation soapAction="urn:retUri" style="document"/>

            <wsdl:input>
                <soap:body use="literal"/>
            </wsdl:input>
            <wsdl:output>
                <soap:body use="literal"/>

            </wsdl:output>        
        </wsdl:operation>
        <wsdl:operation name="sendSmsLogo" wsoap:action="">
            <soap:operation soapAction="urn:retGuid" style="document"/>

            <wsdl:input>
                <soap:body use="literal"/>
            </wsdl:input>
            <wsdl:output>
                <soap:body use="literal"/>

            </wsdl:output>        
        </wsdl:operation>
        <wsdl:operation name="sendSmsRingtone" wsoap:action="">
            <soap:operation soapAction="urn:retInt" style="document"/>

            <wsdl:input>
                <soap:body use="literal"/>
            </wsdl:input>
            <wsdl:output>
                <soap:body use="literal"/>

            </wsdl:output>        
        </wsdl:operation>
        <wsdl:operation name="getSmsDeliveryStatus" wsoap:action="">
            <soap:operation soapAction="urn:retULong" style="document"/>

                <wsdl:input>
                    <soap:body use="literal"/>
                </wsdl:input>
                <wsdl:output>
                    <soap:body use="literal"/>

                </wsdl:output>
        </wsdl:operation>
  </wsdl:binding>      
  <wsdl:service name="SendSmsService">
    <!-- interface="interface:SendSms" -->

    <!-- endpoint name="SendSms" binding="tns:SendSmsBinding" address="http://localhost:9080/SendSmsService/services/SendSms"
-->

 <!-- each service has one or more ports one for each supported version of soap message
format (SOAP1.1/SOAP1.2) -->
      <wsdl:port name="ComplexDataTypesHttpSoap11Endpoint" binding="ns:ComplexDataTypesSoap11Binding">

            <soap:address location="http://localhost:9080/SendSmsService/services/SendSms"/>
      </wsdl:port>

    <!-- /endpoint -->
  </wsdl:service>
<!-- /description -->
</wsdl:definitions>

hth,
Martin Gainty 

Axis Instructor and Contracting
001-603-702-1023
(http)www.laconiadatasystems.com

(e)mgainty@hotmail.com
______________________________________________ 
Strategy without tactics is the slowest route to victory... Tactics without strategy is the
noise before defeat -- Sun Tzu







Date: Thu, 10 Mar 2011 11:27:19 -0800

Subject: Re: [Axis2] AXIS2-4170 status quest
From: pingpinganan@gmail.com
To: java-dev@axis.apache.org


Hi Martin,

Thank you for your quick response.

The WSDL file I use for testing is provided originally by Vincent Du who reported and filed
this issue.  It is available on JIRA.  I attached the zip file with this e-mail.  The entry
WSDL file is parlayx_sms_send_service_2_2.wsdl2.  You can use this one.



Thanks Martin.

Ping


On Thu, Mar 10, 2011 at 11:11 AM, Martin Gainty <mgainty@hotmail.com> wrote:







Ping-

I just completed 5 testcases that encountered that same error with wsdl2java and i have a
solution
if you send me the wsdl I will provide you a workaround to get your stubs and clients created
(i will also detail refactorings to your existing base)



also please include any referenced schemas

Martin Gainty 
______________________________________________ 
Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité
 
Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten
wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist
unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet
keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen
wir keine Haftung fuer den Inhalt uebernehmen.


Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire
prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe
quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information
seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les
email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune
responsabilité pour le contenu fourni.






Date: Thu, 10 Mar 2011 10:04:24 -0800
Subject: [Axis2] AXIS2-4170 status quest
From: pingpinganan@gmail.com
To: java-dev@axis.apache.org



Is anybody currently working on issue AXIS2-4170 (WSDL2JAVA for WSDL2.0 has CodeGenerationException/NullPointerException)?
 I did some initial investigation and was able to recreate the same problem that Vincent reported.




If no one is working on this issue, I would like to dive deeper into it.  Could anybody let
me know the status of this issue?

Many thanks!!

Ping
 		 	   		  



---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org 		 	   		  

 		 	   		  
Mime
View raw message