Hi,
My Axis c++ version is 1.5 And I want to know that :
There is ISoapAttachment in Axis C++1.6, is there MutilPart class? Where do I can find a opensource MultiPart C++ class for Axis?
The following text is  My WSDL:
<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions name="Message_Service"
targetNamespace="http://goldensoft.net/mms/MessageService "
xmlns:cms="http://goldensoft.net/mms/MessageService"
xmlns:cmstype="http://goldensoft.net/mms/MessageService.xsd "

xmlns="http://schemas.xmlsoap.org/wsdl/"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/ "
xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/ "
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:wsi="http://ws-i.org/schemas/conformanceClaim/ ">
    <wsdl:types>
        <xs:schema targetNamespace="http://goldensoft.net/mms/MessageService.xsd" >
                    <xs:complexType name="usrType">
                        <xs:attribute name="id" type="xs:string" use="required"/>
                        <xs:attribute name="type" type="xs:short" use="required"/>
                    </xs:complexType>
              <xs:complexType name="optType">
                        <xs:attribute name="p1" type="xs:short" use="required"/>
                        <xs:attribute name="p2" type="xs:short" use="required"/>
              </xs:complexType>
              <xs:complexType name="reqType">
              <xs:sequence>
                <xs:element name="usr"  nillable="true" type="cmstype:usrType"/>
                <xs:element name="opt"  nillable="true" type="cmstype:optType"/>
              </xs:sequence>
              <xs:attribute name="sn" type="xs:short" use="required"/>
              <xs:attribute name="ver" type="xs:decimal" use="required"/>
              </xs:complexType>
              <xs:complexType name="rspType">
              <xs:sequence>
                   <xs:element name="usr" nillable="true" type="cmstype:usrType"/>
                <xs:element name="opt"  nillable="true" type="cmstype:optType"/>
              </xs:sequence>
              <xs:attribute name="sn" type="xs:short" use="required"/>
              <xs:attribute name="ver" type="xs:decimal" use="required"/>
             </xs:complexType>
            
</xs:schema>
    </wsdl:types>
    <wsdl:message name="MessageServiceRequest">
        <wsdl:documentation></wsdl:documentation>
        <wsdl:part name="req" type="cmstype:reqType"/>
        <wsdl:part name="requestContent" type="xs:base64Binary"/>
    </wsdl:message>
    <wsdl:message name="MessageServiceResponse">
        <wsdl:documentation></wsdl:documentation>
        <wsdl:part name="rsp" type="cmstype:rspType"/>
        <wsdl:part name="responseContent" type="xs:base64Binary"/>
    </wsdl:message>
    <wsdl:portType name="MessagePort">
        <wsdl:operation name="service">
            <wsdl:input message="cms:MessageServiceRequest" name="serviceRequest"/>
            <wsdl:output message="cms:MessageServiceResponse" name="serviceResponse" />
        </wsdl:operation>
    </wsdl:portType>
    <wsdl:binding name="MessageBinding" type="cms:MessagePort">
        <wsdl:documentation>
            <wsi:Claim conformsTo=" http://ws-i.org/profiles/basic1.0/"/>
        </wsdl:documentation>
        <soap:binding transport=" http://schemas.xmlsoap.org/soap/http" style="document"/>
        <wsdl:operation name="service">
            <soap:operation soapAction="service"  style="document"/>
            <wsdl:input name="serviceRequest">           
                  <mime:multipartRelated>
                            <mime:part>
                           <soap:body use="literal" parts="req"  />
                            </mime:part>
                            <mime:part>
                                <mime:content part="requestContent" type="multipart/mixed"/>
                            </mime:part>
                        </mime:multipartRelated>               
            </wsdl:input>
            <wsdl:output name="serviceResponse" >           
                  <mime:multipartRelated>
                            <mime:part>
                           <soap:body use="literal" parts="rsp"/>    
                            </mime:part>
                            <mime:part>
                                <mime:content part="responseContent" type="multipart/mixed"/>
                            </mime:part>
                        </mime:multipartRelated>
            </wsdl:output>
            <!--wsdl:fault name="MessageServiceFailedFault">
                <soap:fault name="MessageServiceFailedFault" use="literal"/>
            </wsdl:fault-->
        </wsdl:operation>
    </wsdl:binding>
        <service name="MessageService">
          <port name="Message" binding="cms:MessageBinding">
            <soap:address location="http://localhost:8081/axis/services/Message"/>
          </port>
        </service>
</wsdl:definitions>




2006/1/16, Adrian Dick <[EMAIL PROTECTED]>:
Hi,

The code you describe below is not valid, suggesting there is a problem
within WSDL2Ws.

To aid finding the problem can you confirm which version of Axis c++ you're
using?
Also, it would be useful if you could attach your WSDL, so we can attempt
to reproduce the problem.

Adrian
_______________________________________
Adrian Dick ([EMAIL PROTECTED])


Jinshan Li < [EMAIL PROTECTED]> wrote on 14/01/2006 07:00:19:

> I use WSDL2Ws  to generate a c++ stub, the following function is
> generated. Is it OK, there is not parameter name and type?
>
> void MessagePort::service(, AXIS_OUT_PARAM  usrType** OutValue0,
> AXIS_OUT_PARAM  optType** OutValue1)
>
> --
> http://www.goldensoft.net




--
http://www.goldensoft.net

Reply via email to