You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by "Heh, Jonathan" <Jo...@ngc.com> on 2006/09/21 22:28:52 UTC

Document/Literal WSDL with attachments

Hello,

 

I am using Axis 1.4 and attempting to create a WSDL for a web service
that for a certain operation includes an XML file as an attachment.

 

I am using the swaRef data type. I want to create a document/literal
wrapped WSDL with attachments.

 

Below is the WSDL. I am receiving errors using WSDL2Java to create the
client stubs pertaining to the swaRef tag. 

 

Any ideas as to where I may be going wrong would be appreciated. Thanks.

 

 

 

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

<wsdl:definitions xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:types="http://dcaps.ngc.com/dCAPSSvc/types"
xmlns:tns="http://dcaps.ngc.com/dCAPSSvc"
targetNamespace="http://dcaps.ngc.com/dCAPSSvc" name="dCAPSSvc">

            <wsdl:types>

                        <xsd:schema
targetNamespace="http://dcaps.ngc.com/dCAPSSvc/types"
xmlns:types="http://dcaps.ngc.com/dCAPSSvc/types"
xmlns:wsi="http://ws-i.org/profiles/basic/1.1/xsd">

                          <xsd:import
namespace="http://ws-i.org/profiles/basic/1.1/xsd" schemaLocation="
http://ws-i.org/profiles/basic/1.1/xsd "/>

                                    <xsd:element name="process">

                                                <xsd:complexType>

 
<xsd:sequence>

 
<xsd:element name="notification" minOccurs="0">

 
<xsd:complexType>

 
<xsd:attribute name="host" type="xsd:string" use="required"/>

 
<xsd:attribute name="port" type="xsd:int" use="required"/>

 
<xsd:attribute name="serviceName" type="xsd:string" use="required"/>

 
</xsd:complexType>

 
</xsd:element>

 
<xsd:element name="file" type="wsi:swaRef"/>

 
</xsd:sequence>

                                                </xsd:complexType>

                                    </xsd:element>

                                    <xsd:element name="processResponse">

                                                <xsd:complexType>

                                                            <xsd:all>

 
<xsd:element name="request" minOccurs="0">

 
<xsd:complexType>

 
<xsd:attribute name="id" type="xsd:int" use="required"/>

 
</xsd:complexType>

 
</xsd:element>

 
<xsd:element name="error" type="xsd:string" minOccurs="0"/>

                                                            </xsd:all>

 
<xsd:attribute name="value" type="xsd:string" use="required"/>

                                                </xsd:complexType>

                                    </xsd:element>

                        </xsd:schema>

            </wsdl:types>

            <wsdl:message name="process">

                        <wsdl:part name="body" element="types:process"/>

            </wsdl:message>

            <wsdl:message name="processResponse">

                        <wsdl:part name="result"
element="types:processResponse"/>

            </wsdl:message>

            <wsdl:portType name="dCAPSSvcPortType">

                        <wsdl:operation name="process">

                                    <wsdl:input message="tns:process"/>

                                    <wsdl:output
message="tns:processResponse"/>

                        </wsdl:operation>

            </wsdl:portType>

            <wsdl:binding name="dCAPSbinding"
type="tns:dCAPSSvcPortType">

                        <soap:binding style="document"
transport="http://schemas.xmlsoap.org/soap/http"/>

                        <wsdl:operation name="process">

                                    <soap:operation
soapAction="process"/>

                                    <wsdl:input>

                                                <soap:body parts="body"
use="literal"/>

                                    </wsdl:input>

                                    <wsdl:output>

                                                <soap:body
parts="result" use="literal"/>

                                    </wsdl:output>

                        </wsdl:operation>

            </wsdl:binding>

            <wsdl:service name="dCAPSService">

                        <wsdl:port name="dCAPSPort"
binding="tns:dCAPSbinding">

                                    <soap:address
location="http://localhost:8080"/>

                        </wsdl:port>

            </wsdl:service>

</wsdl:definitions>

 

 

 

Jonathan Heh

Engineer/Analyst, Northrop Grumman Integrated Systems

Jonathan.Heh@NGC.com <ma...@NGC.com> 


Re: Document/Literal WSDL with attachments

Posted by Anne Thomas Manes <at...@gmail.com>.
I don't believe that Axis 1.x supports the swaRef data type.

On 9/21/06, Heh, Jonathan <Jo...@ngc.com> wrote:
>
>
>
>
> Hello,
>
>
>
> I am using Axis 1.4 and attempting to create a WSDL for a web service that
> for a certain operation includes an XML file as an attachment.
>
>
>
> I am using the swaRef data type. I want to create a document/literal wrapped
> WSDL with attachments.
>
>
>
> Below is the WSDL. I am receiving errors using WSDL2Java to create the
> client stubs pertaining to the swaRef tag.
>
>
>
> Any ideas as to where I may be going wrong would be appreciated. Thanks.
>
>
>
>
>
>
>
> <?xml version="1.0" encoding="UTF-8"?>
>
> <wsdl:definitions
> xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
> xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
> xmlns:xsd="http://www.w3.org/2001/XMLSchema"
> xmlns:types="http://dcaps.ngc.com/dCAPSSvc/types"
> xmlns:tns="http://dcaps.ngc.com/dCAPSSvc"
> targetNamespace="http://dcaps.ngc.com/dCAPSSvc" name="dCAPSSvc">
>
>             <wsdl:types>
>
>                         <xsd:schema
> targetNamespace="http://dcaps.ngc.com/dCAPSSvc/types"
> xmlns:types="http://dcaps.ngc.com/dCAPSSvc/types"
> xmlns:wsi="http://ws-i.org/profiles/basic/1.1/xsd">
>
>                           <xsd:import
> namespace="http://ws-i.org/profiles/basic/1.1/xsd"
> schemaLocation=" http://ws-i.org/profiles/basic/1.1/xsd "/>
>
>                                     <xsd:element
> name="process">
>
>
> <xsd:complexType>
>
>
> <xsd:sequence>
>
>
>             <xsd:element name="notification" minOccurs="0">
>
>
>                         <xsd:complexType>
>
>
>
> <xsd:attribute name="host" type="xsd:string" use="required"/>
>
>
>
> <xsd:attribute name="port" type="xsd:int" use="required"/>
>
>
>
> <xsd:attribute name="serviceName" type="xsd:string" use="required"/>
>
>
>                         </xsd:complexType>
>
>
>             </xsd:element>
>
>
>             <xsd:element name="file" type="wsi:swaRef"/>
>
>
> </xsd:sequence>
>
>
> </xsd:complexType>
>
>                                     </xsd:element>
>
>                                     <xsd:element
> name="processResponse">
>
>
> <xsd:complexType>
>
>
> <xsd:all>
>
>
>             <xsd:element name="request" minOccurs="0">
>
>
>                         <xsd:complexType>
>
>
>
> <xsd:attribute name="id" type="xsd:int" use="required"/>
>
>
>                         </xsd:complexType>
>
>
>             </xsd:element>
>
>
>             <xsd:element name="error" type="xsd:string"
> minOccurs="0"/>
>
>
> </xsd:all>
>
>
> <xsd:attribute name="value" type="xsd:string" use="required"/>
>
>
> </xsd:complexType>
>
>                                     </xsd:element>
>
>                         </xsd:schema>
>
>             </wsdl:types>
>
>             <wsdl:message name="process">
>
>                         <wsdl:part name="body" element="types:process"/>
>
>             </wsdl:message>
>
>             <wsdl:message name="processResponse">
>
>                         <wsdl:part name="result"
> element="types:processResponse"/>
>
>             </wsdl:message>
>
>             <wsdl:portType name="dCAPSSvcPortType">
>
>                         <wsdl:operation name="process">
>
>                                     <wsdl:input
> message="tns:process"/>
>
>                                     <wsdl:output
> message="tns:processResponse"/>
>
>                         </wsdl:operation>
>
>             </wsdl:portType>
>
>             <wsdl:binding name="dCAPSbinding" type="tns:dCAPSSvcPortType">
>
>                         <soap:binding style="document"
> transport="http://schemas.xmlsoap.org/soap/http"/>
>
>                         <wsdl:operation name="process">
>
>                                     <soap:operation
> soapAction="process"/>
>
>                                     <wsdl:input>
>
>                                                 <soap:body
> parts="body" use="literal"/>
>
>                                     </wsdl:input>
>
>                                     <wsdl:output>
>
>                                                 <soap:body
> parts="result" use="literal"/>
>
>                                     </wsdl:output>
>
>                         </wsdl:operation>
>
>             </wsdl:binding>
>
>             <wsdl:service name="dCAPSService">
>
>                         <wsdl:port name="dCAPSPort"
> binding="tns:dCAPSbinding">
>
>                                     <soap:address
> location="http://localhost:8080"/>
>
>                         </wsdl:port>
>
>             </wsdl:service>
>
> </wsdl:definitions>
>
>
>
>
>
>
>
> Jonathan Heh
>
> Engineer/Analyst, Northrop Grumman Integrated Systems
>
> Jonathan.Heh@NGC.com

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