users@jax-rpc.java.net

RE: Is the scheme defined by http://java.sun.com/jax-rpc-ri/inter nal valid ???

From: Purbhoo, Hansika <PurbhooH_at_scmb.co.za>
Date: Fri, 16 Jan 2004 06:15:09 +0200

Hi
I eventually figured out the problem, ( in case anybody ever has a similar
problem )
Business Connector only accepts the WSDL if the tye defination names are
fully qualified ...
So , when I changed the WSDL to look as follows , it worked fine

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

<definitions name="CPSWebService" targetNamespace="http://localhost:80/wsdl"
xmlns:tns="http://localhost: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>
    <xsd:schema targetNamespace="http://java.sun.com/jax-rpc-ri/internal"
                xmlns:xsd="http://www.w3.org/2001/XMLSchema" >
         <xsd:simpleType name="datahandler" >
        <xsd:restriction base="xsd:base64Binary">
        </xsd:restriction>
      </xsd:simpleType>

    </xsd:schema>
  </types>
  
  <message name="CPSReceiptsServiceIF_sendPurchaseOrder">
    <part name="DataHandler_1" type="tns:datahandler"/>
  </message>
  .......etc .......

Thanks everyone !!!
Regards
Hansika

-----Original Message-----
From: Anne Thomas Manes [mailto:anne_at_manes.net]
Sent: 15 January 2004 04:46
To: users_at_jax-rpc.dev.java.net
Subject: Re: Is the scheme defined by
http://java.sun.com/jax-rpc-ri/internal valid ???


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

__________________________________________________________________________________________________________________________________

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