ws-wsif-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Leng, Jialing" <jialing.l...@uk.fid-intl.com>
Subject RE: Problem for .wsdl that imports .xsd
Date Wed, 13 Jul 2005 14:19:39 GMT
Thanks Fiore.
 
I used the following:
 
<types xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"

xmlns:xsd="http://www.w3.org/2001/XMLSchema">

<xsd:schema>

<xsd:import namespace="urn:schemas-xtrac-fmr-com:b2b"

schemaLocation="../schemas/XtracB2BServiceSchema.xsd" />

</xsd:schema>

</types>

But it complains

Error   INVALID_WSDL: XSD element {urn:schemas-xtrac-fmr-com:b2b}Login
cannot be resolved XtracLogin.wsdl IPManager/src/wsifclients/wsdls line 1.

and in XSD file, "Login" is as follows:

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

<xsd:schema xmlns:xt="urn:schemas-xtrac-fmr-com:b2b"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
targetNamespace="urn:schemas-xtrac-fmr-com:b2b"
elementFormDefault="qualified" attributeFormDefault="unqualified">

<!-- Xtrac Session Cookie data type -->

<xsd:element name="Cookie" type="xsd:string"/>

 

<!-- ***************************************************** -->

<!-- Login -->

<!-- ***************************************************** -->

<!-- Request -->

<xsd:element name="Login" type="xt:LoginType"/>

<xsd:complexType name="LoginType">

<xsd:sequence>

<xsd:element name="OperId" type="xt:OperIdType"/>

<xsd:element name="Password" type="xt:PasswordType"/>

<xsd:element name="GetSecurityFunctions" type="xt:YesNoType" minOccurs="0"/>

<xsd:element name="GetBitmaskSecurityFunctions" type="xt:YesNoType"
minOccurs="0"/>

<xsd:element name="GetOperatorProfileInfo" type="xt:YesNoType"
minOccurs="0"/>

<xsd:element name="GetSourceSystemInfo" type="xt:YesNoType" minOccurs="0"/>

</xsd:sequence>

</xsd:complexType>

 

Any idea why ?

Thanks

Jialing


 

-----Original Message-----
From: Fiore Paolo [mailto:Paolo.Fiore@atosorigin.com] 
Sent: 13 July 2005 14:47
To: wsif-user@ws.apache.org
Subject: R: Problem for .wsdl that imports .xsd


Leng,
 
try with:
 
<import namespace="urn:schemas-xtrac-fmr-com:b2b"
schemaLocation="../schemas/XtracB2BServiceSchema.xsd" /> 

-----Messaggio originale-----
Da: Leng, Jialing [mailto:jialing.leng@uk.fid-intl.com]
Inviato: mercoledì 13 luglio 2005 15.41
A: 'wsif-user@ws.apache.org'
Oggetto: Problem for .wsdl that imports .xsd




Hi, I am new to this forum/WSIF and hopefully someone can point me into the
direction ... 

I am trying to use WSIF to access the web services and the WSDL file
describing the web services includes an "import" tag section which should
import the specified XSD file which defines the data types used for the web
services. WSDL2Java does generates the classes fine. But somehow my WSIF
application cannot seem to pick up the data types there. I am using wsif 2.0
downloaded from Apache web site. The import line is like :

<import namespace="urn:schemas-xtrac-fmr-com:b2b"
location="../schemas/XtracB2BServiceSchema.xsd" /> 

Can anyone help me on this ? 

Thanks 
Jialing 



Mime
View raw message