users@jax-rpc.java.net

Re: Is the scheme defined by http://java.sun.com/jax-rpc-ri/internal valid ???

From: Anne Thomas Manes <anne_at_manes.net>
Date: Thu, 15 Jan 2004 09:46:06 -0500

The schema looks valid (although you haven't really defined a restriction).
It sounds like Business Connection doesn't fully implement support for XML
Schema.
As a workaround, just use xsd:base64Binary:

<part name="DataHandler_1" type="xsd:base64Binary"/>

Anne

At 02:29 AM 1/14/2004, you wrote:
>Hi Everybody
>
>I have written a webservice that passes an xml file from client to server .
>So, we have a method which takes a DataHandler type as a parameter
>I have written a client in Java to connect to the service and on testing
>this, all seems to be in order.....
>
>However, another client is trying to connect to this web service using
>Business
>Connector .
>Business Connector has the functionality to import a WSDL and automatically
>generate a client.
>When business connector tries to import the WSDL, it fails, as it can not
>recognize the DataHandler type...
>
>My WSDL file looks something like
><?xml version="1.0" encoding="UTF-8"?>
><definitions name="TestWebService"
> targetNamespace="http://www.test.co.za:80/wsdl"
> xmlns:tns="http://www.test.co.za:80/wsdl"
> xmlns="http://schemas.xmlsoap.org/wsdl/"
> xmlns:ns2="http://java.sun.com/jax-rpc-ri/internal"
> xmlns:xsd="http://www.w3.org/2001/XMLSchema"
> xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/">
> <types>
> <schema targetNamespace="http://java.sun.com/jax-rpc-ri/internal"
> xmlns:tns="http://java.sun.com/jax-rpc-ri/internal"
> xmlns:soap11-enc="http://schemas.xmlsoap.org/soap/encoding/"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
> xmlns="http://www.w3.org/2001/XMLSchema">
> <import namespace="http://schemas.xmlsoap.org/soap/encoding/"/>
> <simpleType name="datahandler">
> <restriction base="base64Binary"/>
> </simpleType>
> </schema>
> </types>
> <message name="TestReceiptsServiceIF_sendPurchaseOrder">
> <part name="DataHandler_1" type="ns2:datahandler"/>
> </message>
>
>
> .....etc ..........
>
>
>
>So, I think that the problem is that it cant seem to understand what the
>DataHandler type actually is .
>In the WSDL it is defined as type ns2:datahandler.
>If you look at ns2 it is defined as
>xmlns:ns2="http://java.sun.com/jax-rpc-ri/internal
>
>Now that particular website does not define anything.
>Could that be the problem?
>Is there another schema that I could use instead of this ?
>
>Note that this WSDL was automatically generated when I compiled my web
>service.
>
>Any help would be much appreciated
>
>Regards
>Hansika
>
>__________________________________________________________________________________________________________________________________
>
>For information about the Standard Bank group visit our web site
><www.standardbank.co.za>
>__________________________________________________________________________________________________________________________________
>
>Disclaimer and confidentiality note
>Everything in this e-mail and any attachments relating to the official
>business of Standard Bank Group Limited is proprietary to the group.
>It is confidential, legally privileged and protected by law.
>Standard Bank does not own and endorse any other content. Views and
>opinions are those of the sender unless clearly stated as being that of
>the group.
>The person addressed in the e-mail is the sole authorised recipient.
>Please notify the sender immediately if it has unintentionally reached you
>and do not read,
>disclose or use the content in any way.
>Standard Bank can not assure that the integrity of this communication has
>been maintained nor that it is free of errors, virus, interception or
>interference.
>___________________________________________________________________________________________________________________________________
>
>---------------------------------------------------------------------
>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