users@jax-rpc.java.net

Re: WSDL & Attachment type

From: Vivek Pandey <Vivek.Pandey_at_Sun.COM>
Date: Wed, 02 Feb 2005 07:15:04 -0800

Thats right. the reference is to an xml type so it type attribute should
be used not element.

-vivek.
Alessio Cervellin wrote:

>In the message declaration, shouldn't it be type="xsd:hexBinary" and not element="xsd:hexBinary"?
>
>
>
>>==========================
>>Date: Tue, 1 Feb 2005 23:01:47 -0800 (PST)
>>From: Harsh <hharsh_at_yahoo.com>
>>To: users_at_jax-rpc.dev.java.net
>>Subject: WSDL & Attachment type
>>==========================
>>
>>Hello,
>>
>>I using a white paper "Building Interoperable Web Services With
>>Attachment
>>Support Using JAXRPC 1.1.2"
>>On the similar line I am trying to create the web service and
>>I was hoping if
>>any one can comment on the error.
>>
>>I am trying to experiment with wsdl file and attachments. I am
>>using wscomplie
>>tool to generate the client stub.
>>
>>My web service takes 2 attachments, one zip file and one xml
>>file
>>
>>Service method performs processing and in response back the
>>zip file as an
>>attachment.
>>
>>
>>
>>Here is the error I get when I run following command:
>>C:\Sun\jwsdp-1.5\jaxrpc\samples\Test>wscompile -gen:client -d
>>./build/client
>>-keep -s ./client/src config.xml
>>error: modeler error: invalid entity name: "hexBinary" (in namespace:
>>"http://www.w3.org/2001/XMLSchema")
>>
>>config.xml:
>><configuration xmlns="http://java.sun.com/xml/ns/jax-rpc/ri/config">
>> <wsdl
>> location="./UpdateXML.wsdl"
>> packageName="com.ws.updatexml"/>
>></configuration>
>>
>>
>>Here is my question:
>>Am I using proper data type? for the zip & xml file attachments?
>>and any inputs
>>on service implementation method which I need to look for.
>>
>>Please let me know.
>>
>>Thanks for your time.
>>
>>-harsh
>>
>>
>>
>>
>><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://test.com/UpdateXML/types"
>>xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"
>>xmlns:tns="http://test.com/UpdateXML"
>>xmlns:ns="http://ws-i.org/profiles/basic/1.1/xsd"
>>targetNamespace="http://test.com/UpdateXML" name="UpdateXMLService">
>> <wsdl:types/>
>> <wsdl:types/>
>> <wsdl:message name="updateXMLRequest">
>> <wsdl:part name="batchZipFile" type="xsd:hexBinary"/>
>> <wsdl:part name="rulesXMLFile" type="xsd:hexBinary"/>
>> </wsdl:message>
>> <wsdl:message name="updateXMLResponse">
>> <wsdl:part name="processedZipFile" element="xsd:hexBinary"/>
>> </wsdl:message>
>> <wsdl:portType name="UpdateXML">
>> <wsdl:operation name="updateXML">
>> <wsdl:input message="tns:updateXMLRequest"/>
>> <wsdl:output message="tns:updateXMLResponse"/>
>> </wsdl:operation>
>> </wsdl:portType>
>> <wsdl:binding name="UpdateXMLBinding" type="tns:UpdateXML">
>> <soap:binding style="document"
>>transport="http://schemas.xmlsoap.org/soap/http"/>
>> <wsdl:operation name="updateXML">
>> <wsdl:input>
>> <mime:multipartRelated>
>> <mime:part>
>> <soap:body use="literal"/>
>> </mime:part>
>> <mime:part>
>> <mime:content part="batchZipFile" type="multipart/x-zip"/>
>> </mime:part>
>> <mime:part>
>> <mime:content part="rulesXMLFile" type="text/xml"/>
>> </mime:part>
>> </mime:multipartRelated>
>> </wsdl:input>
>> <wsdl:output>
>> <mime:multipartRelated>
>> <mime:part>
>> <soap:body use="literal"/>
>> </mime:part>
>> <mime:part>
>> <mime:content part="processedZipFile" type="multipart/x-zip"/>
>> </mime:part>
>> </mime:multipartRelated>
>> </wsdl:output>
>> </wsdl:operation>
>> </wsdl:binding>
>> <wsdl:service name="UpdateXMLService">
>> <wsdl:port name="UpdateXMLPort" binding="tns:UpdateXMLBinding">
>> <soap:address location="http://localhost:8080/UpdateXML"/>
>> </wsdl:port>
>> </wsdl:service>
>></wsdl:definitions>
>>
>>
>>
>>
>>__________________________________
>>Do you Yahoo!?
>>Yahoo! Mail - Easier than ever with enhanced search. Learn more.
>>http://info.mail.yahoo.com/mail_250
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: users-unsubscribe_at_jax-rpc.dev.java.net
>>For additional commands, e-mail: users-help_at_jax-rpc.dev.java.net
>>
>>
>>
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: users-unsubscribe_at_jax-rpc.dev.java.net
>For additional commands, e-mail: users-help_at_jax-rpc.dev.java.net
>
>
>