Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » XML Schema Definition (XSD) » loading embedded schemas from wsdl
loading embedded schemas from wsdl [message #39626] Wed, 24 March 2004 19:41 Go to next message
Eclipse UserFriend
Originally posted by: cipher8000.yahoo.com

Hi Ed,

Is there any sample/test code to look at on how to load the embedded schemas
from a wsdl file.

i have a wsdl, looks like below:

<definition>
<types>
<schema targetNamespace="boo">
<complexType name="booType/>
</schema>
<schema targetNamespace="foo" xmlns:b="boo"/>
<import namespace="boo"/>
<element name="e1" type="b:booType"/>
</schema>
</types>
</definition>

"foo" schema depends on the "boo" schema.

thanks
-muruga
Re: loading embedded schemas from wsdl [message #39655 is a reply to message #39626] Wed, 24 March 2004 21:08 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: merks.ca.ibm.com

Muruga,

All you need to do is register the XSDResourceFactoryImpl to handle "wsdl"
extensions just as you do for "xsd". For the resulting "wsdl" resource, the
getContents() will contain all the embedded <schema>s, just as the "xsd"
resource's getContents() contains a single schema for the one <schema> in the
..xsd file.


Muruga Chinnananchi wrote:

> Hi Ed,
>
> Is there any sample/test code to look at on how to load the embedded schemas
> from a wsdl file.
>
> i have a wsdl, looks like below:
>
> <definition>
> <types>
> <schema targetNamespace="boo">
> <complexType name="booType/>
> </schema>
> <schema targetNamespace="foo" xmlns:b="boo"/>
> <import namespace="boo"/>
> <element name="e1" type="b:booType"/>
> </schema>
> </types>
> </definition>
>
> "foo" schema depends on the "boo" schema.
>
> thanks
> -muruga
Re: loading embedded schemas from wsdl [message #39685 is a reply to message #39655] Wed, 24 March 2004 23:02 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: cipher8000.yahoo.com

Hi Ed,

Sorry. i didnt notice..i thought i sent to the news group. Here is the
problem.
here i am attaching the wsdl, i am sure i don't have any imports which
points to
invalid schema location. But i have an import without schemaLocation.

I attached the wsdl along with this email. For some reason when i tried to
load:

<schema attributeFormDefault="qualified" elementFormDefault="qualified"
targetNamespace="http://samples.cxdn.com"
xmlns="http://www.w3.org/2001/XMLSchema"
xmlns:payment="http://payment.org">
<import namespace="http://payment.org"/>
<element name="paymentRequest" type="payment:PaymentRequestType"/>
<element name="digitalReceipt" type="payment:DigitalReceiptType"/>
</schema>

i get this extra <html> resource. Do you think it is because the import
doesn't have a "schemaLocation" attribute.

thanks,
-muruga
------------------------------------------------------------ -----------
Muruga,

It's best to ask question on the forum so that more people will benefit
from the answers.

Probably there is an import or include in one of your schemas who's that
resolves to an http address that yields the HTML you show below. You
should figure out the URI of the resource with the content you show below
and then look for an import or include with that schema location or
namespace.

------------------------------------------------------------ -------------
Hi Ed,

Thanks for the tip.

Rightnow I am manually parsing <schema> elements and creating
XSDSchema using XSDFactory and associate that element with XSDSchema.

But after i parsed all the embedded schemas, i tried printing each one
from ResourceSet.
I get this <html> doc as extra resource into ResourceSet.

<?xml version="1.0" encoding="UTF-8"?>
<html>
<head>
<title>Under Construction</title>
</head>
<body bgcolor="#ffffff">
<center>
<img height="35"
src="http://banners.directnic.com/construction/const_title.gif"
width="760">
<br>

<table border="0" cellpadding="0" cellspacing="0" width="436">
<tr>
<td>
<img border="0" height="1"
src="http://banners.directnic.com/construction/spacer.gif" width="171"/>
</td>
</tr>
</table>
</br>
</img>
</center>
</body>
</html>

thanks
-muruga

"Ed Merks" <merks@ca.ibm.com> wrote in message
news:4061F8BC.E20D3E01@ca.ibm.com...
Muruga,

All you need to do is register the XSDResourceFactoryImpl to handle "wsdl"
extensions just as you do for "xsd". For the resulting "wsdl" resource,
the
getContents() will contain all the embedded <schema>s, just as the "xsd"
resource's getContents() contains a single schema for the one <schema> in
the
..xsd file.


Muruga Chinnananchi wrote:

> Hi Ed,
>
> Is there any sample/test code to look at on how to load the embedded
schemas
> from a wsdl file.
>
> i have a wsdl, looks like below:
>
> <definition>
> <types>
> <schema targetNamespace="boo">
> <complexType name="booType/>
> </schema>
> <schema targetNamespace="foo" xmlns:b="boo"/>
> <import namespace="boo"/>
> <element name="e1" type="b:booType"/>
> </schema>
> </types>
> </definition>
>
> "foo" schema depends on the "boo" schema.
>
> thanks
> -muruga


  • Attachment: PayFlow.wsdl
    (Size: 2.44KB, Downloaded 276 times)
Re: loading embedded schemas from wsdl [message #39719 is a reply to message #39685] Wed, 24 March 2004 23:21 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: merks.ca.ibm.com

--------------05F3F97A67BA9FC3D43AED37
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Muruaga,

An <import> without a schemaLocation will use the namespace as the location.

At the risk of free advertisement for http://payment.org, if you type that
into you browser, you'll see a page that not surprisingly is under
construction. ;-)


Muruga Chinnananchi wrote:

> Hi Ed,
>
> Sorry. i didnt notice..i thought i sent to the news group. Here is the
> problem.
> here i am attaching the wsdl, i am sure i don't have any imports which
> points to
> invalid schema location. But i have an import without schemaLocation.
>
> I attached the wsdl along with this email. For some reason when i tried to
> load:
>
> <schema attributeFormDefault="qualified" elementFormDefault="qualified"
> targetNamespace="http://samples.cxdn.com"
> xmlns="http://www.w3.org/2001/XMLSchema"
> xmlns:payment="http://payment.org">
> <import namespace="http://payment.org"/>
> <element name="paymentRequest" type="payment:PaymentRequestType"/>
> <element name="digitalReceipt" type="payment:DigitalReceiptType"/>
> </schema>
>
> i get this extra <html> resource. Do you think it is because the import
> doesn't have a "schemaLocation" attribute.
>
> thanks,
> -muruga
> ------------------------------------------------------------ -----------
> Muruga,
>
> It's best to ask question on the forum so that more people will benefit
> from the answers.
>
> Probably there is an import or include in one of your schemas who's that
> resolves to an http address that yields the HTML you show below. You
> should figure out the URI of the resource with the content you show below
> and then look for an import or include with that schema location or
> namespace.
>
> ------------------------------------------------------------ -------------
> Hi Ed,
>
> Thanks for the tip.
>
> Rightnow I am manually parsing <schema> elements and creating
> XSDSchema using XSDFactory and associate that element with XSDSchema.
>
> But after i parsed all the embedded schemas, i tried printing each one
> from ResourceSet.
> I get this <html> doc as extra resource into ResourceSet.
>
> <?xml version="1.0" encoding="UTF-8"?>
> <html>
> <head>
> <title>Under Construction</title>
> </head>
> <body bgcolor="#ffffff">
> <center>
> <img height="35"
> src="http://banners.directnic.com/construction/const_title.gif"
> width="760">
> <br>
>
> <table border="0" cellpadding="0" cellspacing="0" width="436">
> <tr>
> <td>
> <img border="0" height="1"
> src="http://banners.directnic.com/construction/spacer.gif" width="171"/>
> </td>
> </tr>
> </table>
> </br>
> </img>
> </center>
> </body>
> </html>
>
> thanks
> -muruga
>
> "Ed Merks" <merks@ca.ibm.com> wrote in message
> news:4061F8BC.E20D3E01@ca.ibm.com...
> Muruga,
>
> All you need to do is register the XSDResourceFactoryImpl to handle "wsdl"
> extensions just as you do for "xsd". For the resulting "wsdl" resource,
> the
> getContents() will contain all the embedded <schema>s, just as the "xsd"
> resource's getContents() contains a single schema for the one <schema> in
> the
> .xsd file.
>
> Muruga Chinnananchi wrote:
>
> > Hi Ed,
> >
> > Is there any sample/test code to look at on how to load the embedded
> schemas
> > from a wsdl file.
> >
> > i have a wsdl, looks like below:
> >
> > <definition>
> > <types>
> > <schema targetNamespace="boo">
> > <complexType name="booType/>
> > </schema>
> > <schema targetNamespace="foo" xmlns:b="boo"/>
> > <import namespace="boo"/>
> > <element name="e1" type="b:booType"/>
> > </schema>
> > </types>
> > </definition>
> >
> > "foo" schema depends on the "boo" schema.
> >
> > thanks
> > -muruga
>
> Name: PayFlow.wsdl
> PayFlow.wsdl Type: unspecified type (application/octet-stream)
> Encoding: x-uuencode

--------------05F3F97A67BA9FC3D43AED37
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit

<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
Muruaga,
<p>An &lt;import> without a schemaLocation will use the namespace as the
location.
<p>At the risk of free advertisement for <A HREF="http://payment.org">http://payment.org</A>, if you type
that into you browser, you'll see a page that not surprisingly is under
construction. ;-)
<br>&nbsp;
<p>Muruga Chinnananchi wrote:
<blockquote TYPE=CITE>Hi Ed,
<p>Sorry. i didnt notice..i thought i sent to the news group. Here is the
<br>problem.
<br>here i am attaching the wsdl, i am sure i don't have any imports which
<br>points to
<br>invalid schema location. But i have an import without schemaLocation.
<p>I attached the wsdl along with this email. For some reason when i tried
to
<br>load:
<p>&nbsp;&lt;schema attributeFormDefault="qualified" elementFormDefault="qualified"
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; targetNamespace="<a href="http://samples.cxdn.com">http://samples.cxdn.com</a>"
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; xmlns="<a href="http://www.w3.org/2001/XMLSchema">http://www.w3.org/2001/XMLSchema</a>"
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; xmlns:payment="<a href="http://payment.org">http://payment.org</a>">
<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; &lt;import namespace="<a href="http://payment.org" /">http://payment.org"/</a>>
<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; &lt;element name="paymentRequest"
type="payment:PaymentRequestType"/>
<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; &lt;element name="digitalReceipt"
type="payment:DigitalReceiptType"/>
<br>&nbsp;&nbsp;&nbsp; &lt;/schema>
<p>i get this extra &lt;html> resource. Do you think it is because the
import
<br>doesn't have a "schemaLocation" attribute.
<p>thanks,
<br>-muruga
<br> ------------------------------------------------------------ -----------
<br>Muruga,
<p>It's best to ask question on the forum so that more people will benefit
<br>from the answers.
<p>Probably there is an import or include in one of your schemas who's
that
<br>resolves to an http address that yields the HTML you show below.&nbsp;
You
<br>should figure out the URI of the resource with the content you show
below
<br>and then look for an import or include with that schema location or
<br>namespace.
<p> ------------------------------------------------------------ -------------
<br>Hi Ed,
<p>Thanks for the tip.
<p>Rightnow I am manually parsing &lt;schema> elements and creating
<br>XSDSchema using XSDFactory and associate that element with XSDSchema.
<p>But after i parsed all the embedded schemas, i tried printing each one
<br>from ResourceSet.
<br>I get this &lt;html> doc as extra resource into ResourceSet.
<p>&lt;?xml version="1.0" encoding="UTF-8"?>
<br>&lt;html>
<br>&lt;head>
<br>&lt;title>Under Construction&lt;/title>
<br>&lt;/head>
<br>&lt;body bgcolor="#ffffff">
<br>&lt;center>
<br>&nbsp; &lt;img height="35"
<br>src="<a href="http://banners.directnic.com/construction/const_title.gif">http://banners.directnic.com/construction/const_title.gif</a>"
<br>width="760">
<br>&lt;br>
<p>&nbsp; &lt;table border="0" cellpadding="0" cellspacing="0" width="436">
<br>&nbsp;&nbsp;&nbsp; &lt;tr>
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;td>
<br>&lt;img border="0" height="1"
<br>src="<a href="http://banners.directnic.com/construction/spacer.gif">http://banners.directnic.com/construction/spacer.gif</a>"
width="171"/>
<br>&lt;/td>
<br>&lt;/tr>
<br>&lt;/table>
<br>&lt;/br>
<br>&lt;/img>
<br>&lt;/center>
<br>&lt;/body>
<br>&lt;/html>
<p>thanks
<br>-muruga
<p>"Ed Merks" &lt;merks@ca.ibm.com> wrote in message
<br><a href="news:4061F8BC.E20D3E01@ca.ibm.com">news:4061F8BC.E20D3E01@ca.ibm.com</a>...
<br>Muruga,
<p>All you need to do is register the XSDResourceFactoryImpl to handle
"wsdl"
<br>extensions just as you do for "xsd".&nbsp;&nbsp; For the resulting
"wsdl" resource,
<br>the
<br>getContents() will contain all the embedded &lt;schema>s, just as the
"xsd"
<br>resource's getContents() contains a single schema for the one &lt;schema>
in
<br>the
<br>.xsd file.
<p>Muruga Chinnananchi wrote:
<p>> Hi Ed,
<br>>
<br>> Is there any sample/test code to look at on how to load the embedded
<br>schemas
<br>> from a wsdl file.
<br>>
<br>> i have a wsdl, looks like below:
<br>>
<br>> &lt;definition>
<br>>&nbsp;&nbsp;&nbsp; &lt;types>
<br>> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; &lt;schema targetNamespace="boo">
<br>> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&lt;complexType name="booType/>
<br>> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;/schema>
<br>> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; &lt;schema targetNamespace="foo"
xmlns:b="boo"/>
<br>> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&lt;import namespace="boo"/>
<br>> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&lt;element name="e1" type="b:booType"/>
<br>> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; &lt;/schema>
<br>>&nbsp;&nbsp;&nbsp; &lt;/types>
<br>> &lt;/definition>
<br>>
<br>> "foo" schema depends on the "boo" schema.
<br>>
<br>> thanks
<br>> -muruga
<p> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
Name: PayFlow.wsdl
<br>&nbsp;&nbsp; PayFlow.wsdl&nbsp;&nbsp;&nbsp; Type: unspecified type
(application/octet-stream)
<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;
Encoding: x-uuencode</blockquote>
</html>

--------------05F3F97A67BA9FC3D43AED37--
Re: loading embedded schemas from wsdl [message #39749 is a reply to message #39719] Wed, 24 March 2004 23:42 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: cipher8000.yahoo.com

This is a multi-part message in MIME format.

------=_NextPart_000_000E_01C411B6.93FFEE40
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Thanks very much Ed. Oh. Thats why i see that html page. Is there any =
workaround to solve these kind of import?

thanks,
-muruga
"Ed Merks" <merks@ca.ibm.com> wrote in message =
news:406217ED.7D8FA9EE@ca.ibm.com...
Muruaga,=20
An <import> without a schemaLocation will use the namespace as the =
location.=20

At the risk of free advertisement for http://payment.org, if you type =
that into you browser, you'll see a page that not surprisingly is under =
construction. ;-)=20
=20

Muruga Chinnananchi wrote:=20

Hi Ed,=20
Sorry. i didnt notice..i thought i sent to the news group. Here is =
the=20
problem.=20
here i am attaching the wsdl, i am sure i don't have any imports =
which=20
points to=20
invalid schema location. But i have an import without =
schemaLocation.=20

I attached the wsdl along with this email. For some reason when i =
tried to=20
load:=20

<schema attributeFormDefault=3D"qualified" =
elementFormDefault=3D"qualified"=20
targetNamespace=3D"http://samples.cxdn.com"=20
xmlns=3D"http://www.w3.org/2001/XMLSchema"=20
xmlns:payment=3D"http://payment.org">=20
<import namespace=3D"http://payment.org"/>=20
<element name=3D"paymentRequest" =
type=3D"payment:PaymentRequestType"/>=20
<element name=3D"digitalReceipt" =
type=3D"payment:DigitalReceiptType"/>=20
</schema>=20

i get this extra <html> resource. Do you think it is because the =
import=20
doesn't have a "schemaLocation" attribute.=20

thanks,=20
-muruga=20
=
------------------------------------------------------------ -----------=20
Muruga,=20

It's best to ask question on the forum so that more people will =
benefit=20
from the answers.=20

Probably there is an import or include in one of your schemas who's =
that=20
resolves to an http address that yields the HTML you show below. =
You=20
should figure out the URI of the resource with the content you show =
below=20
and then look for an import or include with that schema location or=20
namespace.=20

=
------------------------------------------------------------ -------------=
=20
Hi Ed,=20

Thanks for the tip.=20

Rightnow I am manually parsing <schema> elements and creating=20
XSDSchema using XSDFactory and associate that element with =
XSDSchema.=20

But after i parsed all the embedded schemas, i tried printing each =
one=20
from ResourceSet.=20
I get this <html> doc as extra resource into ResourceSet.=20

<?xml version=3D"1.0" encoding=3D"UTF-8"?>=20
<html>=20
<head>=20
<title>Under Construction</title>=20
</head>=20
<body bgcolor=3D"#ffffff">=20
<center>=20
<img height=3D"35"=20
src=3D"http://banners.directnic.com/construction/const_title.gif"=20
width=3D"760">=20
<br>=20

<table border=3D"0" cellpadding=3D"0" cellspacing=3D"0" =
width=3D"436">=20
<tr>=20
<td>=20
<img border=3D"0" height=3D"1"=20
src=3D"http://banners.directnic.com/construction/spacer.gif" =
width=3D"171"/>=20
</td>=20
</tr>=20
</table>=20
</br>=20
</img>=20
</center>=20
</body>=20
</html>=20

thanks=20
-muruga=20

"Ed Merks" <merks@ca.ibm.com> wrote in message=20
news:4061F8BC.E20D3E01@ca.ibm.com...=20
Muruga,=20

All you need to do is register the XSDResourceFactoryImpl to handle =
"wsdl"=20
extensions just as you do for "xsd". For the resulting "wsdl" =
resource,=20
the=20
getContents() will contain all the embedded <schema>s, just as the =
"xsd"=20
resource's getContents() contains a single schema for the one =
<schema> in=20
the=20
.xsd file.=20

Muruga Chinnananchi wrote:=20

> Hi Ed,=20
>=20
> Is there any sample/test code to look at on how to load the =
embedded=20
schemas=20
> from a wsdl file.=20
>=20
> i have a wsdl, looks like below:=20
>=20
> <definition>=20
> <types>=20
> <schema targetNamespace=3D"boo">=20
> <complexType name=3D"booType/>=20
> </schema>=20
> <schema targetNamespace=3D"foo" xmlns:b=3D"boo"/>=20
> <import namespace=3D"boo"/>=20
> <element name=3D"e1" type=3D"b:booType"/>=20
> </schema>=20
> </types>=20
> </definition>=20
>=20
> "foo" schema depends on the "boo" schema.=20
>=20
> thanks=20
> -muruga=20

Name: PayFlow.wsdl=20
PayFlow.wsdl Type: unspecified type (application/octet-stream) =

Encoding: x-uuencode

------=_NextPart_000_000E_01C411B6.93FFEE40
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2800.1400" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Thanks very much Ed.&nbsp; Oh. Thats =
why i see that=20
html page. Is there any workaround to solve these kind of =
import?</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>thanks,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>-muruga</FONT></DIV>
<BLOCKQUOTE dir=3Dltr=20
style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; =
BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV>"Ed Merks" &lt;<A =
href=3D"mailto:merks@ca.ibm.com">merks@ca.ibm.com</A>&gt;=20
wrote in message <A=20
=
href=3D"news:406217ED.7D8FA9EE@ca.ibm.com">news:406217ED.7D8FA9EE@ca.ibm.=
com</A>...</DIV>Muruaga,=20

<P>An &lt;import&gt; without a schemaLocation will use the namespace =
as the=20
location.=20
<P>At the risk of free advertisement for <A=20
href=3D"http://payment.org">http://payment.org</A>, if you type that =
into you=20
browser, you'll see a page that not surprisingly is under =
construction. ;-)=20
<BR>&nbsp;=20
<P>Muruga Chinnananchi wrote:=20
<BLOCKQUOTE TYPE=3D"CITE">Hi Ed,=20
<P>Sorry. i didnt notice..i thought i sent to the news group. Here =
is the=20
<BR>problem. <BR>here i am attaching the wsdl, i am sure i don't =
have any=20
imports which <BR>points to <BR>invalid schema location. But i have =
an=20
import without schemaLocation.=20
<P>I attached the wsdl along with this email. For some reason when i =
tried=20
to <BR>load:=20
<P>&nbsp;&lt;schema attributeFormDefault=3D"qualified"=20
elementFormDefault=3D"qualified" <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
targetNamespace=3D"<A=20
href=3D"http://samples.cxdn.com">http://samples.cxdn.com</A>"=20
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; xmlns=3D"<A=20
=
href=3D"http://www.w3.org/2001/XMLSchema">http://www.w3.org/2001/XMLSchem=
a</A>"=20
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; xmlns:payment=3D"<A=20
href=3D"http://payment.org">http://payment.org</A>"&gt;=20
<BR> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; &lt;import =
namespace=3D"<A=20
href=3D"http://payment.org" ?>http://payment.org"/</A>&gt;=20
<BR> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; &lt;element=20
name=3D"paymentRequest" type=3D"payment:PaymentRequestType"/&gt;=20
<BR> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; &lt;element=20
name=3D"digitalReceipt" type=3D"payment:DigitalReceiptType"/&gt;=20
<BR>&nbsp;&nbsp;&nbsp; &lt;/schema&gt;=20
<P>i get this extra &lt;html&gt; resource. Do you think it is =
because the=20
import <BR>doesn't have a "schemaLocation" attribute.=20
<P>thanks, <BR>-muruga=20
=
<BR> ------------------------------------------------------------ ---------=
--=20
<BR>Muruga,=20
<P>It's best to ask question on the forum so that more people will =
benefit=20
<BR>from the answers.=20
<P>Probably there is an import or include in one of your schemas =
who's that=20
<BR>resolves to an http address that yields the HTML you show =
below.&nbsp;=20
You <BR>should figure out the URI of the resource with the content =
you show=20
below <BR>and then look for an import or include with that schema =
location=20
or <BR>namespace.=20
=
<P> ------------------------------------------------------------ ----------=
---=20
<BR>Hi Ed,=20
<P>Thanks for the tip.=20
<P>Rightnow I am manually parsing &lt;schema&gt; elements and =
creating=20
<BR>XSDSchema using XSDFactory and associate that element with =
XSDSchema.=20
<P>But after i parsed all the embedded schemas, i tried printing =
each one=20
<BR>from ResourceSet. <BR>I get this &lt;html&gt; doc as extra =
resource into=20
ResourceSet.=20
<P>&lt;?xml version=3D"1.0" encoding=3D"UTF-8"?&gt; <BR>&lt;html&gt; =

<BR>&lt;head&gt; <BR>&lt;title&gt;Under Construction&lt;/title&gt;=20
<BR>&lt;/head&gt; <BR>&lt;body bgcolor=3D"#ffffff"&gt; =
<BR>&lt;center&gt;=20
<BR>&nbsp; &lt;img height=3D"35" <BR>src=3D"<A=20
=
href=3D"http://banners.directnic.com/construction/const_title.gif">http:/=
/banners.directnic.com/construction/const_title.gif</A>"=20
<BR>width=3D"760"&gt; <BR>&lt;br&gt;=20
<P>&nbsp; &lt;table border=3D"0" cellpadding=3D"0" cellspacing=3D"0" =

width=3D"436"&gt; <BR>&nbsp;&nbsp;&nbsp; &lt;tr&gt;=20
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;td&gt; <BR>&lt;img =
border=3D"0"=20
height=3D"1" <BR>src=3D"<A=20
=
href=3D"http://banners.directnic.com/construction/spacer.gif">http://bann=
ers.directnic.com/construction/spacer.gif</A>"=20
width=3D"171"/&gt; <BR>&lt;/td&gt; <BR>&lt;/tr&gt; =
<BR>&lt;/table&gt;=20
<BR>&lt;/br&gt; <BR>&lt;/img&gt; <BR>&lt;/center&gt; =
<BR>&lt;/body&gt;=20
<BR>&lt;/html&gt;=20
<P>thanks <BR>-muruga=20
<P>"Ed Merks" &lt;merks@ca.ibm.com&gt; wrote in message <BR><A=20
=
href=3D"news:4061F8BC.E20D3E01@ca.ibm.com">news:4061F8BC.E20D3E01@ca.ibm.=
com</A>...=20
<BR>Muruga,=20
<P>All you need to do is register the XSDResourceFactoryImpl to =
handle=20
"wsdl" <BR>extensions just as you do for "xsd".&nbsp;&nbsp; For the=20
resulting "wsdl" resource, <BR>the <BR>getContents() will contain =
all the=20
embedded &lt;schema&gt;s, just as the "xsd" <BR>resource's =
getContents()=20
contains a single schema for the one &lt;schema&gt; in <BR>the =
<BR>.xsd=20
file.=20
<P>Muruga Chinnananchi wrote:=20
<P>&gt; Hi Ed, <BR>&gt; <BR>&gt; Is there any sample/test code to =
look at on=20
how to load the embedded <BR>schemas <BR>&gt; from a wsdl file. =
<BR>&gt;=20
<BR>&gt; i have a wsdl, looks like below: <BR>&gt; <BR>&gt;=20
&lt;definition&gt; <BR>&gt;&nbsp;&nbsp;&nbsp; &lt;types&gt;=20
<BR> &gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&a mp;nbsp;&nbsp;&nbsp; &lt;schema=20
targetNamespace=3D"boo"&gt;=20
=
<BR> &gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&a mp;nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
;&nbsp;=20
&lt;complexType name=3D"booType/&gt;=20
<BR> &gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&a mp;nbsp;&nbsp;&nbsp;&nbsp;=20
&lt;/schema&gt; =
<BR> &gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&a mp;nbsp;&nbsp;&nbsp;=20
&lt;schema targetNamespace=3D"foo" xmlns:b=3D"boo"/&gt;=20
=
<BR> &gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&a mp;nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
;&nbsp;=20
&lt;import namespace=3D"boo"/&gt;=20
=
<BR> &gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&a mp;nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
;=20
&lt;element name=3D"e1" type=3D"b:booType"/&gt;=20
<BR> &gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&a mp;nbsp;&nbsp;&nbsp; =
&lt;/schema&gt;=20
<BR>&gt;&nbsp;&nbsp;&nbsp; &lt;/types&gt; <BR>&gt; =
&lt;/definition&gt;=20
<BR>&gt; <BR>&gt; "foo" schema depends on the "boo" schema. <BR>&gt; =

<BR>&gt; thanks <BR>&gt; -muruga=20
=
<P> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs p;=20
Name: PayFlow.wsdl <BR>&nbsp;&nbsp; PayFlow.wsdl&nbsp;&nbsp;&nbsp; =
Type:=20
unspecified type (application/octet-stream)=20
=
<BR> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;=20
Encoding: x-uuencode</P></BLOCKQUOTE></BLOCKQUOTE></BODY></HTML>

------=_NextPart_000_000E_01C411B6.93FFEE40--
Re: loading embedded schemas from wsdl [message #39842 is a reply to message #39749] Thu, 25 March 2004 11:40 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: merks.ca.ibm.com

--------------98B2494BC23E9CCC0C82ABE7
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Muruga,

You could specify a schemaLocation in the <import> or you could use the
ResourceSet's URIConverter's URIMap to map the namespace to the physical
location of the schema.


Muruga Chinnananchi wrote:

> Thanks very much Ed. Oh. Thats why i see that html page. Is there any
> workaround to solve these kind of import? thanks,-muruga
>
> "Ed Merks" <merks@ca.ibm.com> wrote in message
> news:406217ED.7D8FA9EE@ca.ibm.com...Muruaga,
>
> An <import> without a schemaLocation will use the namespace
> as the location.
>
> At the risk of free advertisement for http://payment.org, if
> you type that into you browser, you'll see a page that not
> surprisingly is under construction. ;-)
>
>
> Muruga Chinnananchi wrote:
>
> > Hi Ed,
> >
> > Sorry. i didnt notice..i thought i sent to the news group.
> > Here is the
> > problem.
> > here i am attaching the wsdl, i am sure i don't have any
> > imports which
> > points to
> > invalid schema location. But i have an import without
> > schemaLocation.
> >
> > I attached the wsdl along with this email. For some reason
> > when i tried to
> > load:
> >
> > <schema attributeFormDefault="qualified"
> > elementFormDefault="qualified"
> > targetNamespace="http://samples.cxdn.com"
> > xmlns="http://www.w3.org/2001/XMLSchema"
> > xmlns:payment="http://payment.org">
> > <import namespace="http://payment.org"/>
> > <element name="paymentRequest"
> > type="payment:PaymentRequestType"/>
> > <element name="digitalReceipt"
> > type="payment:DigitalReceiptType"/>
> > </schema>
> >
> > i get this extra <html> resource. Do you think it is
> > because the import
> > doesn't have a "schemaLocation" attribute.
> >
> > thanks,
> > -muruga
> > -------
> > ------------------------------------------------------------ ---
> >
> > Muruga,
> >
> > It's best to ask question on the forum so that more people
> > will benefit
> > from the answers.
> >
> > Probably there is an import or include in one of your
> > schemas who's that
> > resolves to an http address that yields the HTML you show
> > below. You
> > should figure out the URI of the resource with the content
> > you show below
> > and then look for an import or include with that schema
> > location or
> > namespace.
> >
> > ----------
> > ------------------------------------------------------------ --
> >
> > Hi Ed,
> >
> > Thanks for the tip.
> >
> > Rightnow I am manually parsing <schema> elements and
> > creating
> > XSDSchema using XSDFactory and associate that element with
> > XSDSchema.
> >
> > But after i parsed all the embedded schemas, i tried
> > printing each one
> > from ResourceSet.
> > I get this <html> doc as extra resource into ResourceSet.
> >
> > <?xml version="1.0" encoding="UTF-8"?>
> > <html>
> > <head>
> > <title>Under Construction</title>
> > </head>
> > <body bgcolor="#ffffff">
> > <center>
> > <img height="35"
> > src="http://banners.directnic.com/construction/const_title.gif"
> >
> > width="760">
> > <br>
> >
> > <table border="0" cellpadding="0" cellspacing="0"
> > width="436">
> > <tr>
> > <td>
> > <img border="0" height="1"
> > src="http://banners.directnic.com/construction/spacer.gif"
> > width="171"/>
> > </td>
> > </tr>
> > </table>
> > </br>
> > </img>
> > </center>
> > </body>
> > </html>
> >
> > thanks
> > -muruga
> >
> > "Ed Merks" <merks@ca.ibm.com> wrote in message
> > news:4061F8BC.E20D3E01@ca.ibm.com...
> > Muruga,
> >
> > All you need to do is register the XSDResourceFactoryImpl
> > to handle "wsdl"
> > extensions just as you do for "xsd". For the resulting
> > "wsdl" resource,
> > the
> > getContents() will contain all the embedded <schema>s,
> > just as the "xsd"
> > resource's getContents() contains a single schema for the
> > one <schema> in
> > the
> > .xsd file.
> >
> > Muruga Chinnananchi wrote:
> >
> > > Hi Ed,
> > >
> > > Is there any sample/test code to look at on how to load
> > the embedded
> > schemas
> > > from a wsdl file.
> > >
> > > i have a wsdl, looks like below:
> > >
> > > <definition>
> > > <types>
> > > <schema targetNamespace="boo">
> > > <complexType name="booType/>
> > > </schema>
> > > <schema targetNamespace="foo" xmlns:b="boo"/>
> > > <import namespace="boo"/>
> > > <element name="e1" type="b:booType"/>
> > > </schema>
> > > </types>
> > > </definition>
> > >
> > > "foo" schema depends on the "boo" schema.
> > >
> > > thanks
> > > -muruga
> >
> > Name: PayFlow.wsdl
> > PayFlow.wsdl Type: unspecified type
> > (application/octet-stream)
> > Encoding: x-uuencode
>

--------------98B2494BC23E9CCC0C82ABE7
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit

<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
<body bgcolor="#FFFFFF">
Muruga,
<p>You could specify a schemaLocation in the &lt;import> or you could use
the ResourceSet's URIConverter's URIMap to map the namespace to the physical
location of the schema.
<br>&nbsp;
<p>Muruga Chinnananchi wrote:
<blockquote TYPE=CITE><style></style>
<font face="Arial"><font size=-1>Thanks
very much Ed.&nbsp; Oh. Thats why i see that html page. Is there any workaround
to solve these kind of import?</font></font>&nbsp;<font face="Arial"><font size=-1>thanks,</font></font><font face="Arial"><font size=-1>-muruga</font></font>
<blockquote dir=ltr
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">"Ed
Merks" &lt;<a href="mailto:merks@ca.ibm.com">merks@ca.ibm.com</a>> wrote
in message <a href="news:406217ED.7D8FA9EE@ca.ibm.com">news:406217ED.7D8FA9EE@ca.ibm.com</a>...Muruaga,
<p>An &lt;import> without a schemaLocation will use the namespace as the
location.
<p>At the risk of free advertisement for <a href="http://payment.org">http://payment.org</a>,
if you type that into you browser, you'll see a page that not surprisingly
is under construction. ;-)
<br>&nbsp;
<p>Muruga Chinnananchi wrote:
<blockquote TYPE="CITE">Hi Ed,
<p>Sorry. i didnt notice..i thought i sent to the news group. Here is the
<br>problem.
<br>here i am attaching the wsdl, i am sure i don't have any imports which
<br>points to
<br>invalid schema location. But i have an import without schemaLocation.
<p>I attached the wsdl along with this email. For some reason when i tried
to
<br>load:
<p>&nbsp;&lt;schema attributeFormDefault="qualified" elementFormDefault="qualified"
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; targetNamespace="<a href="http://samples.cxdn.com">http://samples.cxdn.com</a>"
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; xmlns="<a href="http://www.w3.org/2001/XMLSchema">http://www.w3.org/2001/XMLSchema</a>"
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; xmlns:payment="<a href="http://payment.org">http://payment.org</a>">
<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; &lt;import namespace="<a href="http://payment.org" ?>http://payment.org"/</a>>
<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; &lt;element name="paymentRequest"
type="payment:PaymentRequestType"/>
<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; &lt;element name="digitalReceipt"
type="payment:DigitalReceiptType"/>
<br>&nbsp;&nbsp;&nbsp; &lt;/schema>
<p>i get this extra &lt;html> resource. Do you think it is because the
import
<br>doesn't have a "schemaLocation" attribute.
<p>thanks,
<br>-muruga
<br> ------------------------------------------------------------ -----------
<br>Muruga,
<p>It's best to ask question on the forum so that more people will benefit
<br>from the answers.
<p>Probably there is an import or include in one of your schemas who's
that
<br>resolves to an http address that yields the HTML you show below.&nbsp;
You
<br>should figure out the URI of the resource with the content you show
below
<br>and then look for an import or include with that schema location or
<br>namespace.
<p> ------------------------------------------------------------ -------------
<br>Hi Ed,
<p>Thanks for the tip.
<p>Rightnow I am manually parsing &lt;schema> elements and creating
<br>XSDSchema using XSDFactory and associate that element with XSDSchema.
<p>But after i parsed all the embedded schemas, i tried printing each one
<br>from ResourceSet.
<br>I get this &lt;html> doc as extra resource into ResourceSet.
<p>&lt;?xml version="1.0" encoding="UTF-8"?>
<br>&lt;html>
<br>&lt;head>
<br>&lt;title>Under Construction&lt;/title>
<br>&lt;/head>
<br>&lt;body bgcolor="#ffffff">
<br>&lt;center>
<br>&nbsp; &lt;img height="35"
<br>src="<a href="http://banners.directnic.com/construction/const_title.gif">http://banners.directnic.com/construction/const_title.gif</a>"
<br>width="760">
<br>&lt;br>
<p>&nbsp; &lt;table border="0" cellpadding="0" cellspacing="0" width="436">
<br>&nbsp;&nbsp;&nbsp; &lt;tr>
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;td>
<br>&lt;img border="0" height="1"
<br>src="<a href="http://banners.directnic.com/construction/spacer.gif">http://banners.directnic.com/construction/spacer.gif</a>"
width="171"/>
<br>&lt;/td>
<br>&lt;/tr>
<br>&lt;/table>
<br>&lt;/br>
<br>&lt;/img>
<br>&lt;/center>
<br>&lt;/body>
<br>&lt;/html>
<p>thanks
<br>-muruga
<p>"Ed Merks" &lt;merks@ca.ibm.com> wrote in message
<br><a href="news:4061F8BC.E20D3E01@ca.ibm.com">news:4061F8BC.E20D3E01@ca.ibm.com</a>...
<br>Muruga,
<p>All you need to do is register the XSDResourceFactoryImpl to handle
"wsdl"
<br>extensions just as you do for "xsd".&nbsp;&nbsp; For the resulting
"wsdl" resource,
<br>the
<br>getContents() will contain all the embedded &lt;schema>s, just as the
"xsd"
<br>resource's getContents() contains a single schema for the one &lt;schema>
in
<br>the
<br>.xsd file.
<p>Muruga Chinnananchi wrote:
<p>> Hi Ed,
<br>>
<br>> Is there any sample/test code to look at on how to load the embedded
<br>schemas
<br>> from a wsdl file.
<br>>
<br>> i have a wsdl, looks like below:
<br>>
<br>> &lt;definition>
<br>>&nbsp;&nbsp;&nbsp; &lt;types>
<br>> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; &lt;schema targetNamespace="boo">
<br>> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&lt;complexType name="booType/>
<br>> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;/schema>
<br>> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; &lt;schema targetNamespace="foo"
xmlns:b="boo"/>
<br>> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&lt;import namespace="boo"/>
<br>> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&lt;element name="e1" type="b:booType"/>
<br>> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; &lt;/schema>
<br>>&nbsp;&nbsp;&nbsp; &lt;/types>
<br>> &lt;/definition>
<br>>
<br>> "foo" schema depends on the "boo" schema.
<br>>
<br>> thanks
<br>> -muruga
<p> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
Name: PayFlow.wsdl
<br>&nbsp;&nbsp; PayFlow.wsdl&nbsp;&nbsp;&nbsp; Type: unspecified type
(application/octet-stream)
<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;
Encoding: x-uuencode</blockquote>
</blockquote>
</blockquote>

</body>
</html>

--------------98B2494BC23E9CCC0C82ABE7--
Re: loading embedded schemas from wsdl [message #39873 is a reply to message #39842] Thu, 25 March 2004 22:40 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: cipher8000.yahoo.com

This is a multi-part message in MIME format.

------=_NextPart_000_0009_01C41277.1BECABC0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Ed,

Thanks for the hint. Can i associate the same schemaLocation (the wsdl =
location) for the two embedded schemas defined in one wsdl.

thanks
-muruga
"Ed Merks" <merks@ca.ibm.com> wrote in message =
news:4062C53B.E3744A6D@ca.ibm.com...
Muruga,=20
You could specify a schemaLocation in the <import> or you could use =
the ResourceSet's URIConverter's URIMap to map the namespace to the =
physical location of the schema.=20
=20

Muruga Chinnananchi wrote:=20

Thanks very much Ed. Oh. Thats why i see that html page. Is there =
any workaround to solve these kind of import? thanks,-muruga=20
"Ed Merks" <merks@ca.ibm.com> wrote in message =
news:406217ED.7D8FA9EE@ca.ibm.com...Muruaga,=20
An <import> without a schemaLocation will use the namespace as the =
location.=20

At the risk of free advertisement for http://payment.org, if you =
type that into you browser, you'll see a page that not surprisingly is =
under construction. ;-)=20
=20

Muruga Chinnananchi wrote:=20

Hi Ed,=20
Sorry. i didnt notice..i thought i sent to the news group. Here =
is the=20
problem.=20
here i am attaching the wsdl, i am sure i don't have any imports =
which=20
points to=20
invalid schema location. But i have an import without =
schemaLocation.=20

I attached the wsdl along with this email. For some reason when =
i tried to=20
load:=20

<schema attributeFormDefault=3D"qualified" =
elementFormDefault=3D"qualified"=20
targetNamespace=3D"http://samples.cxdn.com"=20
xmlns=3D"http://www.w3.org/2001/XMLSchema"=20
xmlns:payment=3D"http://payment.org">=20
<import namespace=3D"http://payment.org"/>=20
<element name=3D"paymentRequest" =
type=3D"payment:PaymentRequestType"/>=20
<element name=3D"digitalReceipt" =
type=3D"payment:DigitalReceiptType"/>=20
</schema>=20

i get this extra <html> resource. Do you think it is because the =
import=20
doesn't have a "schemaLocation" attribute.=20

thanks,=20
-muruga=20
=
------------------------------------------------------------ -----------=20
Muruga,=20

It's best to ask question on the forum so that more people will =
benefit=20
from the answers.=20

Probably there is an import or include in one of your schemas =
who's that=20
resolves to an http address that yields the HTML you show below. =
You=20
should figure out the URI of the resource with the content you =
show below=20
and then look for an import or include with that schema location =
or=20
namespace.=20

=
------------------------------------------------------------ -------------=
=20
Hi Ed,=20

Thanks for the tip.=20

Rightnow I am manually parsing <schema> elements and creating=20
XSDSchema using XSDFactory and associate that element with =
XSDSchema.=20

But after i parsed all the embedded schemas, i tried printing =
each one=20
from ResourceSet.=20
I get this <html> doc as extra resource into ResourceSet.=20

<?xml version=3D"1.0" encoding=3D"UTF-8"?>=20
<html>=20
<head>=20
<title>Under Construction</title>=20
</head>=20
<body bgcolor=3D"#ffffff">=20
<center>=20
<img height=3D"35"=20
=
src=3D"http://banners.directnic.com/construction/const_title.gif"=20
width=3D"760">=20
<br>=20

<table border=3D"0" cellpadding=3D"0" cellspacing=3D"0" =
width=3D"436">=20
<tr>=20
<td>=20
<img border=3D"0" height=3D"1"=20
src=3D"http://banners.directnic.com/construction/spacer.gif" =
width=3D"171"/>=20
</td>=20
</tr>=20
</table>=20
</br>=20
</img>=20
</center>=20
</body>=20
</html>=20

thanks=20
-muruga=20

"Ed Merks" <merks@ca.ibm.com> wrote in message=20
news:4061F8BC.E20D3E01@ca.ibm.com...=20
Muruga,=20

All you need to do is register the XSDResourceFactoryImpl to =
handle "wsdl"=20
extensions just as you do for "xsd". For the resulting "wsdl" =
resource,=20
the=20
getContents() will contain all the embedded <schema>s, just as =
the "xsd"=20
resource's getContents() contains a single schema for the one =
<schema> in=20
the=20
.xsd file.=20

Muruga Chinnananchi wrote:=20

> Hi Ed,=20
>=20
> Is there any sample/test code to look at on how to load the =
embedded=20
schemas=20
> from a wsdl file.=20
>=20
> i have a wsdl, looks like below:=20
>=20
> <definition>=20
> <types>=20
> <schema targetNamespace=3D"boo">=20
> <complexType name=3D"booType/>=20
> </schema>=20
> <schema targetNamespace=3D"foo" xmlns:b=3D"boo"/>=20
> <import namespace=3D"boo"/>=20
> <element name=3D"e1" type=3D"b:booType"/>=20
> </schema>=20
> </types>=20
> </definition>=20
>=20
> "foo" schema depends on the "boo" schema.=20
>=20
> thanks=20
> -muruga=20

Name: PayFlow.wsdl=20
PayFlow.wsdl Type: unspecified type =
(application/octet-stream)=20
Encoding: x-uuencode

------=_NextPart_000_0009_01C41277.1BECABC0
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2800.1400" name=3DGENERATOR></HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Ed,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Thanks for the hint. Can i =
associate&nbsp;the same=20
schemaLocation (the wsdl location) for the two embedded schemas defined =
in one=20
wsdl.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>thanks</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>-muruga</FONT></DIV>
<BLOCKQUOTE dir=3Dltr=20
style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; =
BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV>"Ed Merks" &lt;<A =
href=3D"mailto:merks@ca.ibm.com">merks@ca.ibm.com</A>&gt;=20
wrote in message <A=20
=
href=3D"news:4062C53B.E3744A6D@ca.ibm.com">news:4062C53B.E3744A6D@ca.ibm.=
com</A>...</DIV>Muruga,=20

<P>You could specify a schemaLocation in the &lt;import&gt; or you =
could use=20
the ResourceSet's URIConverter's URIMap to map the namespace to the =
physical=20
location of the schema. <BR>&nbsp;=20
<P>Muruga Chinnananchi wrote:=20
<BLOCKQUOTE TYPE=3D"CITE">
<STYLE></STYLE>
<FONT face=3DArial><FONT size=3D-1>Thanks very much Ed.&nbsp; Oh. =
Thats why i=20
see that html page. Is there any workaround to solve these kind of=20
import?</FONT></FONT>&nbsp;<FONT face=3DArial><FONT=20
size=3D-1>thanks,</FONT></FONT><FONT face=3DArial><FONT=20
size=3D-1>-muruga</FONT></FONT>=20
<BLOCKQUOTE dir=3Dltr=20
style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; =
BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">"Ed=20
Merks" &lt;<A =
href=3D"mailto:merks@ca.ibm.com">merks@ca.ibm.com</A>&gt;=20
wrote in message <A=20
=
href=3D"news:406217ED.7D8FA9EE@ca.ibm.com">news:406217ED.7D8FA9EE@ca.ibm.=
com</A>...Muruaga,=20

<P>An &lt;import&gt; without a schemaLocation will use the =
namespace as=20
the location.=20
<P>At the risk of free advertisement for <A=20
href=3D"http://payment.org">http://payment.org</A>, if you type =
that into=20
you browser, you'll see a page that not surprisingly is under=20
construction. ;-) <BR>&nbsp;=20
<P>Muruga Chinnananchi wrote:=20
<BLOCKQUOTE TYPE=3D"CITE">Hi Ed,=20
<P>Sorry. i didnt notice..i thought i sent to the news group. =
Here is=20
the <BR>problem. <BR>here i am attaching the wsdl, i am sure i =
don't=20
have any imports which <BR>points to <BR>invalid schema =
location. But i=20
have an import without schemaLocation.=20
<P>I attached the wsdl along with this email. For some reason =
when i=20
tried to <BR>load:=20
<P>&nbsp;&lt;schema attributeFormDefault=3D"qualified"=20
elementFormDefault=3D"qualified" =
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
targetNamespace=3D"<A=20
href=3D"http://samples.cxdn.com">http://samples.cxdn.com</A>"=20
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; xmlns=3D"<A=20
=
href=3D"http://www.w3.org/2001/XMLSchema">http://www.w3.org/2001/XMLSchem=
a</A>"=20
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; xmlns:payment=3D"<A=20
href=3D"http://payment.org">http://payment.org</A>"&gt;=20
<BR> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; &lt;import =
namespace=3D"<A=20
href=3D"http://payment.org" ?>http://payment.org"/</A>&gt;=20
<BR> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; &lt;element=20
name=3D"paymentRequest" type=3D"payment:PaymentRequestType"/&gt; =

<BR> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; &lt;element=20
name=3D"digitalReceipt" type=3D"payment:DigitalReceiptType"/&gt; =

<BR>&nbsp;&nbsp;&nbsp; &lt;/schema&gt;=20
<P>i get this extra &lt;html&gt; resource. Do you think it is =
because=20
the import <BR>doesn't have a "schemaLocation" attribute.=20
<P>thanks, <BR>-muruga=20
=
<BR> ------------------------------------------------------------ ---------=
--=20
<BR>Muruga,=20
<P>It's best to ask question on the forum so that more people =
will=20
benefit <BR>from the answers.=20
<P>Probably there is an import or include in one of your schemas =
who's=20
that <BR>resolves to an http address that yields the HTML you =
show=20
below.&nbsp; You <BR>should figure out the URI of the resource =
with the=20
content you show below <BR>and then look for an import or =
include with=20
that schema location or <BR>namespace.=20
=
<P> ------------------------------------------------------------ ----------=
---=20
<BR>Hi Ed,=20
<P>Thanks for the tip.=20
<P>Rightnow I am manually parsing &lt;schema&gt; elements and =
creating=20
<BR>XSDSchema using XSDFactory and associate that element with=20
XSDSchema.=20
<P>But after i parsed all the embedded schemas, i tried printing =
each=20
one <BR>from ResourceSet. <BR>I get this &lt;html&gt; doc as =
extra=20
resource into ResourceSet.=20
<P>&lt;?xml version=3D"1.0" encoding=3D"UTF-8"?&gt; =
<BR>&lt;html&gt;=20
<BR>&lt;head&gt; <BR>&lt;title&gt;Under =
Construction&lt;/title&gt;=20
<BR>&lt;/head&gt; <BR>&lt;body bgcolor=3D"#ffffff"&gt; =
<BR>&lt;center&gt;=20
<BR>&nbsp; &lt;img height=3D"35" <BR>src=3D"<A=20
=
href=3D"http://banners.directnic.com/construction/const_title.gif">http:/=
/banners.directnic.com/construction/const_title.gif</A>"=20
<BR>width=3D"760"&gt; <BR>&lt;br&gt;=20
<P>&nbsp; &lt;table border=3D"0" cellpadding=3D"0" =
cellspacing=3D"0"=20
width=3D"436"&gt; <BR>&nbsp;&nbsp;&nbsp; &lt;tr&gt;=20
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;td&gt; <BR>&lt;img =
border=3D"0"=20
height=3D"1" <BR>src=3D"<A=20
=
href=3D"http://banners.directnic.com/construction/spacer.gif">http://bann=
ers.directnic.com/construction/spacer.gif</A>"=20
width=3D"171"/&gt; <BR>&lt;/td&gt; <BR>&lt;/tr&gt; =
<BR>&lt;/table&gt;=20
<BR>&lt;/br&gt; <BR>&lt;/img&gt; <BR>&lt;/center&gt; =
<BR>&lt;/body&gt;=20
<BR>&lt;/html&gt;=20
<P>thanks <BR>-muruga=20
<P>"Ed Merks" &lt;merks@ca.ibm.com&gt; wrote in message <BR><A=20
=
href=3D"news:4061F8BC.E20D3E01@ca.ibm.com">news:4061F8BC.E20D3E01@ca.ibm.=
com</A>...=20
<BR>Muruga,=20
<P>All you need to do is register the XSDResourceFactoryImpl to =
handle=20
"wsdl" <BR>extensions just as you do for "xsd".&nbsp;&nbsp; For =
the=20
resulting "wsdl" resource, <BR>the <BR>getContents() will =
contain all=20
the embedded &lt;schema&gt;s, just as the "xsd" <BR>resource's=20
getContents() contains a single schema for the one =
&lt;schema&gt; in=20
<BR>the <BR>.xsd file.=20
<P>Muruga Chinnananchi wrote:=20
<P>&gt; Hi Ed, <BR>&gt; <BR>&gt; Is there any sample/test code =
to look=20
at on how to load the embedded <BR>schemas <BR>&gt; from a wsdl =
file.=20
<BR>&gt; <BR>&gt; i have a wsdl, looks like below: <BR>&gt; =
<BR>&gt;=20
&lt;definition&gt; <BR>&gt;&nbsp;&nbsp;&nbsp; &lt;types&gt;=20
<BR> &gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&a mp;nbsp;&nbsp;&nbsp; =
&lt;schema=20
targetNamespace=3D"boo"&gt;=20
=
<BR> &gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&a mp;nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
;&nbsp;=20
&lt;complexType name=3D"booType/&gt;=20
<BR> &gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&a mp;nbsp;&nbsp;&nbsp;&nbsp;=20
&lt;/schema&gt; =
<BR> &gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&a mp;nbsp;&nbsp;&nbsp;=20
&lt;schema targetNamespace=3D"foo" xmlns:b=3D"boo"/&gt;=20
=
<BR> &gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&a mp;nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
;&nbsp;=20
&lt;import namespace=3D"boo"/&gt;=20
=
<BR> &gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&a mp;nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
;=20
&lt;element name=3D"e1" type=3D"b:booType"/&gt;=20
<BR> &gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&a mp;nbsp;&nbsp;&nbsp; =
&lt;/schema&gt;=20
<BR>&gt;&nbsp;&nbsp;&nbsp; &lt;/types&gt; <BR>&gt; =
&lt;/definition&gt;=20
<BR>&gt; <BR>&gt; "foo" schema depends on the "boo" schema. =
<BR>&gt;=20
<BR>&gt; thanks <BR>&gt; -muruga=20
=
<P> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs p;=20
Name: PayFlow.wsdl <BR>&nbsp;&nbsp; =
PayFlow.wsdl&nbsp;&nbsp;&nbsp; Type:=20
unspecified type (application/octet-stream)=20
=
<BR> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;=20
Encoding:=20
x-uuencode</P></BLOCKQUOTE></BLOCKQUOTE></BLOCKQUOTE></BLOCKQUOTE ></BODY>=
</HTML>

------=_NextPart_000_0009_01C41277.1BECABC0--
Re: loading embedded schemas from wsdl [message #39937 is a reply to message #39873] Fri, 26 March 2004 11:09 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: merks.ca.ibm.com

--------------3753996ABFECBD8257B041E7
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Muruga,

If you are asking whether XSDSchema.getSchemaLocation() can be set to
the same location of the .wsdl for all the schemas in one .wsdl, the
answer is yes.


Muruga Chinnananchi wrote:

> Ed, Thanks for the hint. Can i associate the same schemaLocation (the
> wsdl location) for the two embedded schemas defined in one
> wsdl. thanks-muruga
>
> "Ed Merks" <merks@ca.ibm.com> wrote in message
> news:4062C53B.E3744A6D@ca.ibm.com...Muruga,
>
> You could specify a schemaLocation in the <import> or you
> could use the ResourceSet's URIConverter's URIMap to map the
> namespace to the physical location of the schema.
>
>
> Muruga Chinnananchi wrote:
>
> > Thanks very much Ed. Oh. Thats why i see that html page.
> > Is there any workaround to solve these kind of import?
> > thanks,-muruga
> >
> > "Ed Merks" <merks@ca.ibm.com> wrote in message
> > news:406217ED.7D8FA9EE@ca.ibm.com...Muruaga,
> >
> > An <import> without a schemaLocation will use
> > the namespace as the location.
> >
> > At the risk of free advertisement for
> > http://payment.org, if you type that into you
> > browser, you'll see a page that not surprisingly
> > is under construction. ;-)
> >
> >
> > Muruga Chinnananchi wrote:
> >
> > > Hi Ed,
> > >
> > > Sorry. i didnt notice..i thought i sent to the
> > > news group. Here is the
> > > problem.
> > > here i am attaching the wsdl, i am sure i don't
> > > have any imports which
> > > points to
> > > invalid schema location. But i have an import
> > > without schemaLocation.
> > >
> > > I attached the wsdl along with this email. For
> > > some reason when i tried to
> > > load:
> > >
> > > <schema attributeFormDefault="qualified"
> > > elementFormDefault="qualified"
> > > targetNamespace="http://samples.cxdn.com"
> > >
> > > xmlns="http://www.w3.org/2001/XMLSchema"
> > > xmlns:payment="http://payment.org">
> > > <import
> > > namespace="http://payment.org"/>
> > > <element name="paymentRequest"
> > > type="payment:PaymentRequestType"/>
> > > <element name="digitalReceipt"
> > > type="payment:DigitalReceiptType"/>
> > > </schema>
> > >
> > > i get this extra <html> resource. Do you think
> > > it is because the import
> > > doesn't have a "schemaLocation" attribute.
> > >
> > > thanks,
> > > -muruga
> > > -------
> > > ------------------------------------------------------------ ---
> > >
> > > Muruga,
> > >
> > > It's best to ask question on the forum so that
> > > more people will benefit
> > > from the answers.
> > >
> > > Probably there is an import or include in one
> > > of your schemas who's that
> > > resolves to an http address that yields the
> > > HTML you show below. You
> > > should figure out the URI of the resource with
> > > the content you show below
> > > and then look for an import or include with
> > > that schema location or
> > > namespace.
> > >
> > > ----------
> > > ------------------------------------------------------------ --
> > >
> > > Hi Ed,
> > >
> > > Thanks for the tip.
> > >
> > > Rightnow I am manually parsing <schema>
> > > elements and creating
> > > XSDSchema using XSDFactory and associate that
> > > element with XSDSchema.
> > >
> > > But after i parsed all the embedded schemas, i
> > > tried printing each one
> > > from ResourceSet.
> > > I get this <html> doc as extra resource into
> > > ResourceSet.
> > >
> > > <?xml version="1.0" encoding="UTF-8"?>
> > > <html>
> > > <head>
> > > <title>Under Construction</title>
> > > </head>
> > > <body bgcolor="#ffffff">
> > > <center>
> > > <img height="35"
> > > src="http://banners.directnic.com/construction/const_title.gif"
> > >
> > > width="760">
> > > <br>
> > >
> > > <table border="0" cellpadding="0"
> > > cellspacing="0" width="436">
> > > <tr>
> > > <td>
> > > <img border="0" height="1"
> > > src="http://banners.directnic.com/construction/spacer.gif"
> > > width="171"/>
> > > </td>
> > > </tr>
> > > </table>
> > > </br>
> > > </img>
> > > </center>
> > > </body>
> > > </html>
> > >
> > > thanks
> > > -muruga
> > >
> > > "Ed Merks" <merks@ca.ibm.com> wrote in message
> > > news:4061F8BC.E20D3E01@ca.ibm.com...
> > > Muruga,
> > >
> > > All you need to do is register the
> > > XSDResourceFactoryImpl to handle "wsdl"
> > > extensions just as you do for "xsd". For the
> > > resulting "wsdl" resource,
> > > the
> > > getContents() will contain all the embedded
> > > <schema>s, just as the "xsd"
> > > resource's getContents() contains a single
> > > schema for the one <schema> in
> > > the
> > > .xsd file.
> > >
> > > Muruga Chinnananchi wrote:
> > >
> > > > Hi Ed,
> > > >
> > > > Is there any sample/test code to look at on
> > > how to load the embedded
> > > schemas
> > > > from a wsdl file.
> > > >
> > > > i have a wsdl, looks like below:
> > > >
> > > > <definition>
> > > > <types>
> > > > <schema targetNamespace="boo">
> > > > <complexType name="booType/>
> > > > </schema>
> > > > <schema targetNamespace="foo"
> > > xmlns:b="boo"/>
> > > > <import namespace="boo"/>
> > > > <element name="e1"
> > > type="b:booType"/>
> > > > </schema>
> > > > </types>
> > > > </definition>
> > > >
> > > > "foo" schema depends on the "boo" schema.
> > > >
> > > > thanks
> > > > -muruga
> > >
> > > Name: PayFlow.wsdl
> > > PayFlow.wsdl Type: unspecified type
> > > (application/octet-stream)
> > > Encoding: x-uuencode
> >

--------------3753996ABFECBD8257B041E7
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit

<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
<body bgcolor="#FFFFFF">
Muruga,
<p>If you are asking whether XSDSchema.getSchemaLocation() can be set to
the same location of the .wsdl for all the schemas in one .wsdl, the answer
is yes.
<br>&nbsp;
<p>Muruga Chinnananchi wrote:
<blockquote TYPE=CITE>&nbsp;<font face="Arial"><font size=-1>Ed,</font></font>&nbsp;<font face="Arial"><font size=-1>Thanks
for the hint. Can i associate the same schemaLocation (the wsdl location)
for the two embedded schemas defined in one wsdl.</font></font>&nbsp;<font face="Arial"><font size=-1>thanks</font></font><font face="Arial"><font size=-1>-muruga</font></font>
<blockquote dir=ltr
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">"Ed
Merks" &lt;<a href="mailto:merks@ca.ibm.com">merks@ca.ibm.com</a>> wrote
in message <a href="news:4062C53B.E3744A6D@ca.ibm.com">news:4062C53B.E3744A6D@ca.ibm.com</a>...Muruga,
<p>You could specify a schemaLocation in the &lt;import> or you could use
the ResourceSet's URIConverter's URIMap to map the namespace to the physical
location of the schema.
<br>&nbsp;
<p>Muruga Chinnananchi wrote:
<blockquote TYPE="CITE"><style></style>
<font face="Arial"><font size=-1>Thanks
very much Ed.&nbsp; Oh. Thats why i see that html page. Is there any workaround
to solve these kind of import?</font></font> <font face="Arial"><font size=-1>thanks,-muruga</font></font>
<blockquote dir=ltr
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">"Ed
Merks" &lt;<a href="mailto:merks@ca.ibm.com">merks@ca.ibm.com</a>> wrote
in message <a href="news:406217ED.7D8FA9EE@ca.ibm.com">news:406217ED.7D8FA9EE@ca.ibm.com</a>...Muruaga,
<p>An &lt;import> without a schemaLocation will use the namespace as the
location.
<p>At the risk of free advertisement for <a href="http://payment.org">http://payment.org</a>,
if you type that into you browser, you'll see a page that not surprisingly
is under construction. ;-)
<br>&nbsp;
<p>Muruga Chinnananchi wrote:
<blockquote TYPE="CITE">Hi Ed,
<p>Sorry. i didnt notice..i thought i sent to the news group. Here is the
<br>problem.
<br>here i am attaching the wsdl, i am sure i don't have any imports which
<br>points to
<br>invalid schema location. But i have an import without schemaLocation.
<p>I attached the wsdl along with this email. For some reason when i tried
to
<br>load:
<p>&nbsp;&lt;schema attributeFormDefault="qualified" elementFormDefault="qualified"
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; targetNamespace="<a href="http://samples.cxdn.com">http://samples.cxdn.com</a>"
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; xmlns="<a href="http://www.w3.org/2001/XMLSchema">http://www.w3.org/2001/XMLSchema</a>"
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; xmlns:payment="<a href="http://payment.org">http://payment.org</a>">
<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; &lt;import namespace="<a href="http://payment.org" ?>http://payment.org"/</a>>
<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; &lt;element name="paymentRequest"
type="payment:PaymentRequestType"/>
<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; &lt;element name="digitalReceipt"
type="payment:DigitalReceiptType"/>
<br>&nbsp;&nbsp;&nbsp; &lt;/schema>
<p>i get this extra &lt;html> resource. Do you think it is because the
import
<br>doesn't have a "schemaLocation" attribute.
<p>thanks,
<br>-muruga
<br> ------------------------------------------------------------ -----------
<br>Muruga,
<p>It's best to ask question on the forum so that more people will benefit
<br>from the answers.
<p>Probably there is an import or include in one of your schemas who's
that
<br>resolves to an http address that yields the HTML you show below.&nbsp;
You
<br>should figure out the URI of the resource with the content you show
below
<br>and then look for an import or include with that schema location or
<br>namespace.
<p> ------------------------------------------------------------ -------------
<br>Hi Ed,
<p>Thanks for the tip.
<p>Rightnow I am manually parsing &lt;schema> elements and creating
<br>XSDSchema using XSDFactory and associate that element with XSDSchema.
<p>But after i parsed all the embedded schemas, i tried printing each one
<br>from ResourceSet.
<br>I get this &lt;html> doc as extra resource into ResourceSet.
<p>&lt;?xml version="1.0" encoding="UTF-8"?>
<br>&lt;html>
<br>&lt;head>
<br>&lt;title>Under Construction&lt;/title>
<br>&lt;/head>
<br>&lt;body bgcolor="#ffffff">
<br>&lt;center>
<br>&nbsp; &lt;img height="35"
<br>src="<a href="http://banners.directnic.com/construction/const_title.gif">http://banners.directnic.com/construction/const_title.gif</a>"
<br>width="760">
<br>&lt;br>
<p>&nbsp; &lt;table border="0" cellpadding="0" cellspacing="0" width="436">
<br>&nbsp;&nbsp;&nbsp; &lt;tr>
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;td>
<br>&lt;img border="0" height="1"
<br>src="<a href="http://banners.directnic.com/construction/spacer.gif">http://banners.directnic.com/construction/spacer.gif</a>"
width="171"/>
<br>&lt;/td>
<br>&lt;/tr>
<br>&lt;/table>
<br>&lt;/br>
<br>&lt;/img>
<br>&lt;/center>
<br>&lt;/body>
<br>&lt;/html>
<p>thanks
<br>-muruga
<p>"Ed Merks" &lt;merks@ca.ibm.com> wrote in message
<br><a href="news:4061F8BC.E20D3E01@ca.ibm.com">news:4061F8BC.E20D3E01@ca.ibm.com</a>...
<br>Muruga,
<p>All you need to do is register the XSDResourceFactoryImpl to handle
"wsdl"
<br>extensions just as you do for "xsd".&nbsp;&nbsp; For the resulting
"wsdl" resource,
<br>the
<br>getContents() will contain all the embedded &lt;schema>s, just as the
"xsd"
<br>resource's getContents() contains a single schema for the one &lt;schema>
in
<br>the
<br>.xsd file.
<p>Muruga Chinnananchi wrote:
<p>> Hi Ed,
<br>>
<br>> Is there any sample/test code to look at on how to load the embedded
<br>schemas
<br>> from a wsdl file.
<br>>
<br>> i have a wsdl, looks like below:
<br>>
<br>> &lt;definition>
<br>>&nbsp;&nbsp;&nbsp; &lt;types>
<br>> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; &lt;schema targetNamespace="boo">
<br>> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&lt;complexType name="booType/>
<br>> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;/schema>
<br>> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; &lt;schema targetNamespace="foo"
xmlns:b="boo"/>
<br>> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&lt;import namespace="boo"/>
<br>> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&lt;element name="e1" type="b:booType"/>
<br>> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; &lt;/schema>
<br>>&nbsp;&nbsp;&nbsp; &lt;/types>
<br>> &lt;/definition>
<br>>
<br>> "foo" schema depends on the "boo" schema.
<br>>
<br>> thanks
<br>> -muruga
<p> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
Name: PayFlow.wsdl
<br>&nbsp;&nbsp; PayFlow.wsdl&nbsp;&nbsp;&nbsp; Type: unspecified type
(application/octet-stream)
<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;
Encoding: x-uuencode</blockquote>
</blockquote>
</blockquote>
</blockquote>
</blockquote>

</body>
</html>

--------------3753996ABFECBD8257B041E7--
Re: loading embedded schemas from wsdl [message #40006 is a reply to message #39937] Fri, 26 March 2004 21:58 Go to previous message
Eclipse UserFriend
Originally posted by: cipher8000.yahoo.com

This is a multi-part message in MIME format.

------=_NextPart_000_000F_01C4133A.6821E820
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Hi Ed,

Thanks very much. It works now. I don't see any html xsd resources in =
the ResourceSet.=20

-Muruga
"Ed Merks" <merks@ca.ibm.com> wrote in message =
news:40640F55.6EDF90CC@ca.ibm.com...
Muruga,=20
If you are asking whether XSDSchema.getSchemaLocation() can be set to =
the same location of the .wsdl for all the schemas in one .wsdl, the =
answer is yes.=20
=20

Muruga Chinnananchi wrote:=20

Ed, Thanks for the hint. Can i associate the same schemaLocation =
(the wsdl location) for the two embedded schemas defined in one wsdl. =
thanks-muruga=20
"Ed Merks" <merks@ca.ibm.com> wrote in message =
news:4062C53B.E3744A6D@ca.ibm.com...Muruga,=20
You could specify a schemaLocation in the <import> or you could =
use the ResourceSet's URIConverter's URIMap to map the namespace to the =
physical location of the schema.=20
=20

Muruga Chinnananchi wrote:=20

Thanks very much Ed. Oh. Thats why i see that html page. Is =
there any workaround to solve these kind of import? thanks,-muruga=20
"Ed Merks" <merks@ca.ibm.com> wrote in message =
news:406217ED.7D8FA9EE@ca.ibm.com...Muruaga,=20
An <import> without a schemaLocation will use the namespace as =
the location.=20

At the risk of free advertisement for http://payment.org, if =
you type that into you browser, you'll see a page that not surprisingly =
is under construction. ;-)=20
=20

Muruga Chinnananchi wrote:=20

Hi Ed,=20
Sorry. i didnt notice..i thought i sent to the news group. =
Here is the=20
problem.=20
here i am attaching the wsdl, i am sure i don't have any =
imports which=20
points to=20
invalid schema location. But i have an import without =
schemaLocation.=20

I attached the wsdl along with this email. For some reason =
when i tried to=20
load:=20

<schema attributeFormDefault=3D"qualified" =
elementFormDefault=3D"qualified"=20
targetNamespace=3D"http://samples.cxdn.com"=20
xmlns=3D"http://www.w3.org/2001/XMLSchema"=20
xmlns:payment=3D"http://payment.org">=20
<import namespace=3D"http://payment.org"/>=20
<element name=3D"paymentRequest" =
type=3D"payment:PaymentRequestType"/>=20
<element name=3D"digitalReceipt" =
type=3D"payment:DigitalReceiptType"/>=20
</schema>=20

i get this extra <html> resource. Do you think it is because =
the import=20
doesn't have a "schemaLocation" attribute.=20

thanks,=20
-muruga=20
=
------------------------------------------------------------ -----------=20
Muruga,=20

It's best to ask question on the forum so that more people =
will benefit=20
from the answers.=20

Probably there is an import or include in one of your =
schemas who's that=20
resolves to an http address that yields the HTML you show =
below. You=20
should figure out the URI of the resource with the content =
you show below=20
and then look for an import or include with that schema =
location or=20
namespace.=20

=
------------------------------------------------------------ -------------=
=20
Hi Ed,=20

Thanks for the tip.=20

Rightnow I am manually parsing <schema> elements and =
creating=20
XSDSchema using XSDFactory and associate that element with =
XSDSchema.=20

But after i parsed all the embedded schemas, i tried =
printing each one=20
from ResourceSet.=20
I get this <html> doc as extra resource into ResourceSet.=20

<?xml version=3D"1.0" encoding=3D"UTF-8"?>=20
<html>=20
<head>=20
<title>Under Construction</title>=20
</head>=20
<body bgcolor=3D"#ffffff">=20
<center>=20
<img height=3D"35"=20
=
src=3D"http://banners.directnic.com/construction/const_title.gif"=20
width=3D"760">=20
<br>=20

<table border=3D"0" cellpadding=3D"0" cellspacing=3D"0" =
width=3D"436">=20
<tr>=20
<td>=20
<img border=3D"0" height=3D"1"=20
src=3D"http://banners.directnic.com/construction/spacer.gif" =
width=3D"171"/>=20
</td>=20
</tr>=20
</table>=20
</br>=20
</img>=20
</center>=20
</body>=20
</html>=20

thanks=20
-muruga=20

"Ed Merks" <merks@ca.ibm.com> wrote in message=20
news:4061F8BC.E20D3E01@ca.ibm.com...=20
Muruga,=20

All you need to do is register the XSDResourceFactoryImpl to =
handle "wsdl"=20
extensions just as you do for "xsd". For the resulting =
"wsdl" resource,=20
the=20
getContents() will contain all the embedded <schema>s, just =
as the "xsd"=20
resource's getContents() contains a single schema for the =
one <schema> in=20
the=20
.xsd file.=20

Muruga Chinnananchi wrote:=20

> Hi Ed,=20
>=20
> Is there any sample/test code to look at on how to load =
the embedded=20
schemas=20
> from a wsdl file.=20
>=20
> i have a wsdl, looks like below:=20
>=20
> <definition>=20
> <types>=20
> <schema targetNamespace=3D"boo">=20
> <complexType name=3D"booType/>=20
> </schema>=20
> <schema targetNamespace=3D"foo" xmlns:b=3D"boo"/>=20
> <import namespace=3D"boo"/>=20
> <element name=3D"e1" type=3D"b:booType"/>=20
> </schema>=20
> </types>=20
> </definition>=20
>=20
> "foo" schema depends on the "boo" schema.=20
>=20
> thanks=20
> -muruga=20

Name: PayFlow.wsdl=20
PayFlow.wsdl Type: unspecified type =
(application/octet-stream)=20
Encoding: x-uuencode

------=_NextPart_000_000F_01C4133A.6821E820
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2800.1400" name=3DGENERATOR></HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Hi Ed,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Thanks very much. It works now. I don't =
see any=20
html xsd resources in the ResourceSet. </FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>-Muruga</FONT></DIV>
<BLOCKQUOTE dir=3Dltr=20
style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; =
BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV>"Ed Merks" &lt;<A =
href=3D"mailto:merks@ca.ibm.com">merks@ca.ibm.com</A>&gt;=20
wrote in message <A=20
=
href=3D"news:40640F55.6EDF90CC@ca.ibm.com">news:40640F55.6EDF90CC@ca.ibm.=
com</A>...</DIV>Muruga,=20

<P>If you are asking whether XSDSchema.getSchemaLocation() can be set =
to the=20
same location of the .wsdl for all the schemas in one .wsdl, the =
answer is=20
yes. <BR>&nbsp;=20
<P>Muruga Chinnananchi wrote:=20
<BLOCKQUOTE TYPE=3D"CITE">&nbsp;<FONT face=3DArial><FONT=20
size=3D-1>Ed,</FONT></FONT>&nbsp;<FONT face=3DArial><FONT =
size=3D-1>Thanks for the=20
hint. Can i associate the same schemaLocation (the wsdl location) =
for the=20
two embedded schemas defined in one wsdl.</FONT></FONT>&nbsp;<FONT=20
face=3DArial><FONT size=3D-1>thanks</FONT></FONT><FONT =
face=3DArial><FONT=20
size=3D-1>-muruga</FONT></FONT>=20
<BLOCKQUOTE dir=3Dltr=20
style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; =
BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">"Ed=20
Merks" &lt;<A =
href=3D"mailto:merks@ca.ibm.com">merks@ca.ibm.com</A>&gt;=20
wrote in message <A=20
=
href=3D"news:4062C53B.E3744A6D@ca.ibm.com">news:4062C53B.E3744A6D@ca.ibm.=
com</A>...Muruga,=20

<P>You could specify a schemaLocation in the &lt;import&gt; or you =
could=20
use the ResourceSet's URIConverter's URIMap to map the namespace =
to the=20
physical location of the schema. <BR>&nbsp;=20
<P>Muruga Chinnananchi wrote:=20
<BLOCKQUOTE TYPE=3D"CITE">
<STYLE></STYLE>
<FONT face=3DArial><FONT size=3D-1>Thanks very much Ed.&nbsp; =
Oh. Thats why=20
i see that html page. Is there any workaround to solve these =
kind of=20
import?</FONT></FONT> <FONT face=3DArial><FONT=20
size=3D-1>thanks,-muruga</FONT></FONT>=20
<BLOCKQUOTE dir=3Dltr=20
style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: =
5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">"Ed=20
Merks" &lt;<A =
href=3D"mailto:merks@ca.ibm.com">merks@ca.ibm.com</A>&gt;=20
wrote in message <A=20
=
href=3D"news:406217ED.7D8FA9EE@ca.ibm.com">news:406217ED.7D8FA9EE@ca.ibm.=
com</A>...Muruaga,=20

<P>An &lt;import&gt; without a schemaLocation will use the =
namespace=20
as the location.=20
<P>At the risk of free advertisement for <A=20
href=3D"http://payment.org">http://payment.org</A>, if you =
type that=20
into you browser, you'll see a page that not surprisingly is =
under=20
construction. ;-) <BR>&nbsp;=20
<P>Muruga Chinnananchi wrote:=20
<BLOCKQUOTE TYPE=3D"CITE">Hi Ed,=20
<P>Sorry. i didnt notice..i thought i sent to the news =
group. Here=20
is the <BR>problem. <BR>here i am attaching the wsdl, i am =
sure i=20
don't have any imports which <BR>points to <BR>invalid =
schema=20
location. But i have an import without schemaLocation.=20
<P>I attached the wsdl along with this email. For some =
reason when i=20
tried to <BR>load:=20
<P>&nbsp;&lt;schema attributeFormDefault=3D"qualified"=20
elementFormDefault=3D"qualified" =
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
targetNamespace=3D"<A=20
=
href=3D"http://samples.cxdn.com">http://samples.cxdn.com</A>"=20
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; xmlns=3D"<A=20
=
href=3D"http://www.w3.org/2001/XMLSchema">http://www.w3.org/2001/XMLSchem=
a</A>"=20
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; xmlns:payment=3D"<A=20
href=3D"http://payment.org">http://payment.org</A>"&gt;=20
<BR> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; &lt;import=20
namespace=3D"<A href=3D"http://payment.org"=20
?>http://payment.org"/</A>&gt;=20
<BR> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; &lt;element=20
name=3D"paymentRequest" =
type=3D"payment:PaymentRequestType"/&gt;=20
<BR> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; &lt;element=20
name=3D"digitalReceipt" =
type=3D"payment:DigitalReceiptType"/&gt;=20
<BR>&nbsp;&nbsp;&nbsp; &lt;/schema&gt;=20
<P>i get this extra &lt;html&gt; resource. Do you think it =
is=20
because the import <BR>doesn't have a "schemaLocation" =
attribute.=20
<P>thanks, <BR>-muruga=20
=
<BR> ------------------------------------------------------------ ---------=
--=20
<BR>Muruga,=20
<P>It's best to ask question on the forum so that more =
people will=20
benefit <BR>from the answers.=20
<P>Probably there is an import or include in one of your =
schemas=20
who's that <BR>resolves to an http address that yields the =
HTML you=20
show below.&nbsp; You <BR>should figure out the URI of the =
resource=20
with the content you show below <BR>and then look for an =
import or=20
include with that schema location or <BR>namespace.=20
=
<P> ------------------------------------------------------------ ----------=
---=20
<BR>Hi Ed,=20
<P>Thanks for the tip.=20
<P>Rightnow I am manually parsing &lt;schema&gt; elements =
and=20
creating <BR>XSDSchema using XSDFactory and associate that =
element=20
with XSDSchema.=20
<P>But after i parsed all the embedded schemas, i tried =
printing=20
each one <BR>from ResourceSet. <BR>I get this &lt;html&gt; =
doc as=20
extra resource into ResourceSet.=20
<P>&lt;?xml version=3D"1.0" encoding=3D"UTF-8"?&gt; =
<BR>&lt;html&gt;=20
<BR>&lt;head&gt; <BR>&lt;title&gt;Under =
Construction&lt;/title&gt;=20
<BR>&lt;/head&gt; <BR>&lt;body bgcolor=3D"#ffffff"&gt;=20
<BR>&lt;center&gt; <BR>&nbsp; &lt;img height=3D"35" =
<BR>src=3D"<A=20
=
href=3D"http://banners.directnic.com/construction/const_title.gif">http:/=
/banners.directnic.com/construction/const_title.gif</A>"=20
<BR>width=3D"760"&gt; <BR>&lt;br&gt;=20
<P>&nbsp; &lt;table border=3D"0" cellpadding=3D"0" =
cellspacing=3D"0"=20
width=3D"436"&gt; <BR>&nbsp;&nbsp;&nbsp; &lt;tr&gt;=20
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;td&gt; <BR>&lt;img =
border=3D"0"=20
height=3D"1" <BR>src=3D"<A=20
=
href=3D"http://banners.directnic.com/construction/spacer.gif">http://bann=
ers.directnic.com/construction/spacer.gif</A>"=20
width=3D"171"/&gt; <BR>&lt;/td&gt; <BR>&lt;/tr&gt; =
<BR>&lt;/table&gt;=20
<BR>&lt;/br&gt; <BR>&lt;/img&gt; <BR>&lt;/center&gt;=20
<BR>&lt;/body&gt; <BR>&lt;/html&gt;=20
<P>thanks <BR>-muruga=20
<P>"Ed Merks" &lt;merks@ca.ibm.com&gt; wrote in message =
<BR><A=20
=
href=3D"news:4061F8BC.E20D3E01@ca.ibm.com">news:4061F8BC.E20D3E01@ca.ibm.=
com</A>...=20
<BR>Muruga,=20
<P>All you need to do is register the XSDResourceFactoryImpl =
to=20
handle "wsdl" <BR>extensions just as you do for =
"xsd".&nbsp;&nbsp;=20
For the resulting "wsdl" resource, <BR>the <BR>getContents() =
will=20
contain all the embedded &lt;schema&gt;s, just as the "xsd"=20
<BR>resource's getContents() contains a single schema for =
the one=20
&lt;schema&gt; in <BR>the <BR>.xsd file.=20
<P>Muruga Chinnananchi wrote:=20
<P>&gt; Hi Ed, <BR>&gt; <BR>&gt; Is there any sample/test =
code to=20
look at on how to load the embedded <BR>schemas <BR>&gt; =
from a wsdl=20
file. <BR>&gt; <BR>&gt; i have a wsdl, looks like below: =
<BR>&gt;=20
<BR>&gt; &lt;definition&gt; <BR>&gt;&nbsp;&nbsp;&nbsp; =
&lt;types&gt;=20
<BR> &gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&a mp;nbsp;&nbsp;&nbsp; =
&lt;schema=20
targetNamespace=3D"boo"&gt;=20
=
<BR> &gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&a mp;nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
;&nbsp;=20
&lt;complexType name=3D"booType/&gt;=20
=
<BR> &gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&a mp;nbsp;&nbsp;&nbsp;&nbsp;=20
&lt;/schema&gt;=20
<BR> &gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&a mp;nbsp;&nbsp;&nbsp; =
&lt;schema=20
targetNamespace=3D"foo" xmlns:b=3D"boo"/&gt;=20
=
<BR> &gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&a mp;nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
;&nbsp;=20
&lt;import namespace=3D"boo"/&gt;=20
=
<BR> &gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&a mp;nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
;=20
&lt;element name=3D"e1" type=3D"b:booType"/&gt;=20
<BR> &gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&a mp;nbsp;&nbsp;&nbsp;=20
&lt;/schema&gt; <BR>&gt;&nbsp;&nbsp;&nbsp; &lt;/types&gt; =
<BR>&gt;=20
&lt;/definition&gt; <BR>&gt; <BR>&gt; "foo" schema depends =
on the=20
"boo" schema. <BR>&gt; <BR>&gt; thanks <BR>&gt; -muruga=20
=
<P> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs p;=20
Name: PayFlow.wsdl <BR>&nbsp;&nbsp; =
PayFlow.wsdl&nbsp;&nbsp;&nbsp;=20
Type: unspecified type (application/octet-stream)=20
=
<BR> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;=20
Encoding:=20
=
x-uuencode</P></BLOCKQUOTE></BLOCKQUOTE></BLOCKQUOTE></BLOCKQUOTE ></BLOCK=
QUOTE></BLOCKQUOTE></BODY></HTML>

------=_NextPart_000_000F_01C4133A.6821E820--
Re: loading embedded schemas from wsdl [message #584634 is a reply to message #39626] Wed, 24 March 2004 21:08 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33137
Registered: July 2009
Senior Member
Muruga,

All you need to do is register the XSDResourceFactoryImpl to handle "wsdl"
extensions just as you do for "xsd". For the resulting "wsdl" resource, the
getContents() will contain all the embedded <schema>s, just as the "xsd"
resource's getContents() contains a single schema for the one <schema> in the
..xsd file.


Muruga Chinnananchi wrote:

> Hi Ed,
>
> Is there any sample/test code to look at on how to load the embedded schemas
> from a wsdl file.
>
> i have a wsdl, looks like below:
>
> <definition>
> <types>
> <schema targetNamespace="boo">
> <complexType name="booType/>
> </schema>
> <schema targetNamespace="foo" xmlns:b="boo"/>
> <import namespace="boo"/>
> <element name="e1" type="b:booType"/>
> </schema>
> </types>
> </definition>
>
> "foo" schema depends on the "boo" schema.
>
> thanks
> -muruga


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: loading embedded schemas from wsdl [message #584653 is a reply to message #39655] Wed, 24 March 2004 23:02 Go to previous message
Eclipse UserFriend
Originally posted by: cipher8000.yahoo.com

Hi Ed,

Sorry. i didnt notice..i thought i sent to the news group. Here is the
problem.
here i am attaching the wsdl, i am sure i don't have any imports which
points to
invalid schema location. But i have an import without schemaLocation.

I attached the wsdl along with this email. For some reason when i tried to
load:

<schema attributeFormDefault="qualified" elementFormDefault="qualified"
targetNamespace="http://samples.cxdn.com"
xmlns="http://www.w3.org/2001/XMLSchema"
xmlns:payment="http://payment.org">
<import namespace="http://payment.org"/>
<element name="paymentRequest" type="payment:PaymentRequestType"/>
<element name="digitalReceipt" type="payment:DigitalReceiptType"/>
</schema>

i get this extra <html> resource. Do you think it is because the import
doesn't have a "schemaLocation" attribute.

thanks,
-muruga
------------------------------------------------------------ -----------
Muruga,

It's best to ask question on the forum so that more people will benefit
from the answers.

Probably there is an import or include in one of your schemas who's that
resolves to an http address that yields the HTML you show below. You
should figure out the URI of the resource with the content you show below
and then look for an import or include with that schema location or
namespace.

------------------------------------------------------------ -------------
Hi Ed,

Thanks for the tip.

Rightnow I am manually parsing <schema> elements and creating
XSDSchema using XSDFactory and associate that element with XSDSchema.

But after i parsed all the embedded schemas, i tried printing each one
from ResourceSet.
I get this <html> doc as extra resource into ResourceSet.

<?xml version="1.0" encoding="UTF-8"?>
<html>
<head>
<title>Under Construction</title>
</head>
<body bgcolor="#ffffff">
<center>
<img height="35"
src="http://banners.directnic.com/construction/const_title.gif"
width="760">
<br>

<table border="0" cellpadding="0" cellspacing="0" width="436">
<tr>
<td>
<img border="0" height="1"
src="http://banners.directnic.com/construction/spacer.gif" width="171"/>
</td>
</tr>
</table>
</br>
</img>
</center>
</body>
</html>

thanks
-muruga

"Ed Merks" <merks@ca.ibm.com> wrote in message
news:4061F8BC.E20D3E01@ca.ibm.com...
Muruga,

All you need to do is register the XSDResourceFactoryImpl to handle "wsdl"
extensions just as you do for "xsd". For the resulting "wsdl" resource,
the
getContents() will contain all the embedded <schema>s, just as the "xsd"
resource's getContents() contains a single schema for the one <schema> in
the
..xsd file.


Muruga Chinnananchi wrote:

> Hi Ed,
>
> Is there any sample/test code to look at on how to load the embedded
schemas
> from a wsdl file.
>
> i have a wsdl, looks like below:
>
> <definition>
> <types>
> <schema targetNamespace="boo">
> <complexType name="booType/>
> </schema>
> <schema targetNamespace="foo" xmlns:b="boo"/>
> <import namespace="boo"/>
> <element name="e1" type="b:booType"/>
> </schema>
> </types>
> </definition>
>
> "foo" schema depends on the "boo" schema.
>
> thanks
> -muruga


  • Attachment: PayFlow.wsdl
    (Size: 2.44KB, Downloaded 187 times)
Re: loading embedded schemas from wsdl [message #584669 is a reply to message #39685] Wed, 24 March 2004 23:21 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33137
Registered: July 2009
Senior Member
--------------05F3F97A67BA9FC3D43AED37
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Muruaga,

An <import> without a schemaLocation will use the namespace as the location.

At the risk of free advertisement for http://payment.org, if you type that
into you browser, you'll see a page that not surprisingly is under
construction. ;-)


Muruga Chinnananchi wrote:

> Hi Ed,
>
> Sorry. i didnt notice..i thought i sent to the news group. Here is the
> problem.
> here i am attaching the wsdl, i am sure i don't have any imports which
> points to
> invalid schema location. But i have an import without schemaLocation.
>
> I attached the wsdl along with this email. For some reason when i tried to
> load:
>
> <schema attributeFormDefault="qualified" elementFormDefault="qualified"
> targetNamespace="http://samples.cxdn.com"
> xmlns="http://www.w3.org/2001/XMLSchema"
> xmlns:payment="http://payment.org">
> <import namespace="http://payment.org"/>
> <element name="paymentRequest" type="payment:PaymentRequestType"/>
> <element name="digitalReceipt" type="payment:DigitalReceiptType"/>
> </schema>
>
> i get this extra <html> resource. Do you think it is because the import
> doesn't have a "schemaLocation" attribute.
>
> thanks,
> -muruga
> ------------------------------------------------------------ -----------
> Muruga,
>
> It's best to ask question on the forum so that more people will benefit
> from the answers.
>
> Probably there is an import or include in one of your schemas who's that
> resolves to an http address that yields the HTML you show below. You
> should figure out the URI of the resource with the content you show below
> and then look for an import or include with that schema location or
> namespace.
>
> ------------------------------------------------------------ -------------
> Hi Ed,
>
> Thanks for the tip.
>
> Rightnow I am manually parsing <schema> elements and creating
> XSDSchema using XSDFactory and associate that element with XSDSchema.
>
> But after i parsed all the embedded schemas, i tried printing each one
> from ResourceSet.
> I get this <html> doc as extra resource into ResourceSet.
>
> <?xml version="1.0" encoding="UTF-8"?>
> <html>
> <head>
> <title>Under Construction</title>
> </head>
> <body bgcolor="#ffffff">
> <center>
> <img height="35"
> src="http://banners.directnic.com/construction/const_title.gif"
> width="760">
> <br>
>
> <table border="0" cellpadding="0" cellspacing="0" width="436">
> <tr>
> <td>
> <img border="0" height="1"
> src="http://banners.directnic.com/construction/spacer.gif" width="171"/>
> </td>
> </tr>
> </table>
> </br>
> </img>
> </center>
> </body>
> </html>
>
> thanks
> -muruga
>
> "Ed Merks" <merks@ca.ibm.com> wrote in message
> news:4061F8BC.E20D3E01@ca.ibm.com...
> Muruga,
>
> All you need to do is register the XSDResourceFactoryImpl to handle "wsdl"
> extensions just as you do for "xsd". For the resulting "wsdl" resource,
> the
> getContents() will contain all the embedded <schema>s, just as the "xsd"
> resource's getContents() contains a single schema for the one <schema> in
> the
> .xsd file.
>
> Muruga Chinnananchi wrote:
>
> > Hi Ed,
> >
> > Is there any sample/test code to look at on how to load the embedded
> schemas
> > from a wsdl file.
> >
> > i have a wsdl, looks like below:
> >
> > <definition>
> > <types>
> > <schema targetNamespace="boo">
> > <complexType name="booType/>
> > </schema>
> > <schema targetNamespace="foo" xmlns:b="boo"/>
> > <import namespace="boo"/>
> > <element name="e1" type="b:booType"/>
> > </schema>
> > </types>
> > </definition>
> >
> > "foo" schema depends on the "boo" schema.
> >
> > thanks
> > -muruga
>
> Name: PayFlow.wsdl
> PayFlow.wsdl Type: unspecified type (application/octet-stream)
> Encoding: x-uuencode

--------------05F3F97A67BA9FC3D43AED37
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit

<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
Muruaga,
<p>An &lt;import> without a schemaLocation will use the namespace as the
location.
<p>At the risk of free advertisement for <A HREF="http://payment.org">http://payment.org</A>, if you type
that into you browser, you'll see a page that not surprisingly is under
construction. ;-)
<br>&nbsp;
<p>Muruga Chinnananchi wrote:
<blockquote TYPE=CITE>Hi Ed,
<p>Sorry. i didnt notice..i thought i sent to the news group. Here is the
<br>problem.
<br>here i am attaching the wsdl, i am sure i don't have any imports which
<br>points to
<br>invalid schema location. But i have an import without schemaLocation.
<p>I attached the wsdl along with this email. For some reason when i tried
to
<br>load:
<p>&nbsp;&lt;schema attributeFormDefault="qualified" elementFormDefault="qualified"
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; targetNamespace="<a href="http://samples.cxdn.com">http://samples.cxdn.com</a>"
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; xmlns="<a href="http://www.w3.org/2001/XMLSchema">http://www.w3.org/2001/XMLSchema</a>"
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; xmlns:payment="<a href="http://payment.org">http://payment.org</a>">
<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; &lt;import namespace="<a href="http://payment.org" /">http://payment.org"/</a>>
<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; &lt;element name="paymentRequest"
type="payment:PaymentRequestType"/>
<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; &lt;element name="digitalReceipt"
type="payment:DigitalReceiptType"/>
<br>&nbsp;&nbsp;&nbsp; &lt;/schema>
<p>i get this extra &lt;html> resource. Do you think it is because the
import
<br>doesn't have a "schemaLocation" attribute.
<p>thanks,
<br>-muruga
<br> ------------------------------------------------------------ -----------
<br>Muruga,
<p>It's best to ask question on the forum so that more people will benefit
<br>from the answers.
<p>Probably there is an import or include in one of your schemas who's
that
<br>resolves to an http address that yields the HTML you show below.&nbsp;
You
<br>should figure out the URI of the resource with the content you show
below
<br>and then look for an import or include with that schema location or
<br>namespace.
<p> ------------------------------------------------------------ -------------
<br>Hi Ed,
<p>Thanks for the tip.
<p>Rightnow I am manually parsing &lt;schema> elements and creating
<br>XSDSchema using XSDFactory and associate that element with XSDSchema.
<p>But after i parsed all the embedded schemas, i tried printing each one
<br>from ResourceSet.
<br>I get this &lt;html> doc as extra resource into ResourceSet.
<p>&lt;?xml version="1.0" encoding="UTF-8"?>
<br>&lt;html>
<br>&lt;head>
<br>&lt;title>Under Construction&lt;/title>
<br>&lt;/head>
<br>&lt;body bgcolor="#ffffff">
<br>&lt;center>
<br>&nbsp; &lt;img height="35"
<br>src="<a href="http://banners.directnic.com/construction/const_title.gif">http://banners.directnic.com/construction/const_title.gif</a>"
<br>width="760">
<br>&lt;br>
<p>&nbsp; &lt;table border="0" cellpadding="0" cellspacing="0" width="436">
<br>&nbsp;&nbsp;&nbsp; &lt;tr>
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;td>
<br>&lt;img border="0" height="1"
<br>src="<a href="http://banners.directnic.com/construction/spacer.gif">http://banners.directnic.com/construction/spacer.gif</a>"
width="171"/>
<br>&lt;/td>
<br>&lt;/tr>
<br>&lt;/table>
<br>&lt;/br>
<br>&lt;/img>
<br>&lt;/center>
<br>&lt;/body>
<br>&lt;/html>
<p>thanks
<br>-muruga
<p>"Ed Merks" &lt;merks@ca.ibm.com> wrote in message
<br><a href="news:4061F8BC.E20D3E01@ca.ibm.com">news:4061F8BC.E20D3E01@ca.ibm.com</a>...
<br>Muruga,
<p>All you need to do is register the XSDResourceFactoryImpl to handle
"wsdl"
<br>extensions just as you do for "xsd".&nbsp;&nbsp; For the resulting
"wsdl" resource,
<br>the
<br>getContents() will contain all the embedded &lt;schema>s, just as the
"xsd"
<br>resource's getContents() contains a single schema for the one &lt;schema>
in
<br>the
<br>.xsd file.
<p>Muruga Chinnananchi wrote:
<p>> Hi Ed,
<br>>
<br>> Is there any sample/test code to look at on how to load the embedded
<br>schemas
<br>> from a wsdl file.
<br>>
<br>> i have a wsdl, looks like below:
<br>>
<br>> &lt;definition>
<br>>&nbsp;&nbsp;&nbsp; &lt;types>
<br>> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; &lt;schema targetNamespace="boo">
<br>> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&lt;complexType name="booType/>
<br>> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;/schema>
<br>> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; &lt;schema targetNamespace="foo"
xmlns:b="boo"/>
<br>> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&lt;import namespace="boo"/>
<br>> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&lt;element name="e1" type="b:booType"/>
<br>> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; &lt;/schema>
<br>>&nbsp;&nbsp;&nbsp; &lt;/types>
<br>> &lt;/definition>
<br>>
<br>> "foo" schema depends on the "boo" schema.
<br>>
<br>> thanks
<br>> -muruga
<p> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
Name: PayFlow.wsdl
<br>&nbsp;&nbsp; PayFlow.wsdl&nbsp;&nbsp;&nbsp; Type: unspecified type
(application/octet-stream)
<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;
Encoding: x-uuencode</blockquote>
</html>

--------------05F3F97A67BA9FC3D43AED37--


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: loading embedded schemas from wsdl [message #584685 is a reply to message #39719] Wed, 24 March 2004 23:42 Go to previous message
Eclipse UserFriend
Originally posted by: cipher8000.yahoo.com

This is a multi-part message in MIME format.

------=_NextPart_000_000E_01C411B6.93FFEE40
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Thanks very much Ed. Oh. Thats why i see that html page. Is there any =
workaround to solve these kind of import?

thanks,
-muruga
"Ed Merks" <merks@ca.ibm.com> wrote in message =
news:406217ED.7D8FA9EE@ca.ibm.com...
Muruaga,=20
An <import> without a schemaLocation will use the namespace as the =
location.=20

At the risk of free advertisement for http://payment.org, if you type =
that into you browser, you'll see a page that not surprisingly is under =
construction. ;-)=20
=20

Muruga Chinnananchi wrote:=20

Hi Ed,=20
Sorry. i didnt notice..i thought i sent to the news group. Here is =
the=20
problem.=20
here i am attaching the wsdl, i am sure i don't have any imports =
which=20
points to=20
invalid schema location. But i have an import without =
schemaLocation.=20

I attached the wsdl along with this email. For some reason when i =
tried to=20
load:=20

<schema attributeFormDefault=3D"qualified" =
elementFormDefault=3D"qualified"=20
targetNamespace=3D"http://samples.cxdn.com"=20
xmlns=3D"http://www.w3.org/2001/XMLSchema"=20
xmlns:payment=3D"http://payment.org">=20
<import namespace=3D"http://payment.org"/>=20
<element name=3D"paymentRequest" =
type=3D"payment:PaymentRequestType"/>=20
<element name=3D"digitalReceipt" =
type=3D"payment:DigitalReceiptType"/>=20
</schema>=20

i get this extra <html> resource. Do you think it is because the =
import=20
doesn't have a "schemaLocation" attribute.=20

thanks,=20
-muruga=20
=
------------------------------------------------------------ -----------=20
Muruga,=20

It's best to ask question on the forum so that more people will =
benefit=20
from the answers.=20

Probably there is an import or include in one of your schemas who's =
that=20
resolves to an http address that yields the HTML you show below. =
You=20
should figure out the URI of the resource with the content you show =
below=20
and then look for an import or include with that schema location or=20
namespace.=20

=
------------------------------------------------------------ -------------=
=20
Hi Ed,=20

Thanks for the tip.=20

Rightnow I am manually parsing <schema> elements and creating=20
XSDSchema using XSDFactory and associate that element with =
XSDSchema.=20

But after i parsed all the embedded schemas, i tried printing each =
one=20
from ResourceSet.=20
I get this <html> doc as extra resource into ResourceSet.=20

<?xml version=3D"1.0" encoding=3D"UTF-8"?>=20
<html>=20
<head>=20
<title>Under Construction</title>=20
</head>=20
<body bgcolor=3D"#ffffff">=20
<center>=20
<img height=3D"35"=20
src=3D"http://banners.directnic.com/construction/const_title.gif"=20
width=3D"760">=20
<br>=20

<table border=3D"0" cellpadding=3D"0" cellspacing=3D"0" =
width=3D"436">=20
<tr>=20
<td>=20
<img border=3D"0" height=3D"1"=20
src=3D"http://banners.directnic.com/construction/spacer.gif" =
width=3D"171"/>=20
</td>=20
</tr>=20
</table>=20
</br>=20
</img>=20
</center>=20
</body>=20
</html>=20

thanks=20
-muruga=20

"Ed Merks" <merks@ca.ibm.com> wrote in message=20
news:4061F8BC.E20D3E01@ca.ibm.com...=20
Muruga,=20

All you need to do is register the XSDResourceFactoryImpl to handle =
"wsdl"=20
extensions just as you do for "xsd". For the resulting "wsdl" =
resource,=20
the=20
getContents() will contain all the embedded <schema>s, just as the =
"xsd"=20
resource's getContents() contains a single schema for the one =
<schema> in=20
the=20
.xsd file.=20

Muruga Chinnananchi wrote:=20

> Hi Ed,=20
>=20
> Is there any sample/test code to look at on how to load the =
embedded=20
schemas=20
> from a wsdl file.=20
>=20
> i have a wsdl, looks like below:=20
>=20
> <definition>=20
> <types>=20
> <schema targetNamespace=3D"boo">=20
> <complexType name=3D"booType/>=20
> </schema>=20
> <schema targetNamespace=3D"foo" xmlns:b=3D"boo"/>=20
> <import namespace=3D"boo"/>=20
> <element name=3D"e1" type=3D"b:booType"/>=20
> </schema>=20
> </types>=20
> </definition>=20
>=20
> "foo" schema depends on the "boo" schema.=20
>=20
> thanks=20
> -muruga=20

Name: PayFlow.wsdl=20
PayFlow.wsdl Type: unspecified type (application/octet-stream) =

Encoding: x-uuencode

------=_NextPart_000_000E_01C411B6.93FFEE40
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2800.1400" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Thanks very much Ed.&nbsp; Oh. Thats =
why i see that=20
html page. Is there any workaround to solve these kind of =
import?</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>thanks,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>-muruga</FONT></DIV>
<BLOCKQUOTE dir=3Dltr=20
style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; =
BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV>"Ed Merks" &lt;<A =
href=3D"mailto:merks@ca.ibm.com">merks@ca.ibm.com</A>&gt;=20
wrote in message <A=20
=
href=3D"news:406217ED.7D8FA9EE@ca.ibm.com">news:406217ED.7D8FA9EE@ca.ibm.=
com</A>...</DIV>Muruaga,=20

<P>An &lt;import&gt; without a schemaLocation will use the namespace =
as the=20
location.=20
<P>At the risk of free advertisement for <A=20
href=3D"http://payment.org">http://payment.org</A>, if you type that =
into you=20
browser, you'll see a page that not surprisingly is under =
construction. ;-)=20
<BR>&nbsp;=20
<P>Muruga Chinnananchi wrote:=20
<BLOCKQUOTE TYPE=3D"CITE">Hi Ed,=20
<P>Sorry. i didnt notice..i thought i sent to the news group. Here =
is the=20
<BR>problem. <BR>here i am attaching the wsdl, i am sure i don't =
have any=20
imports which <BR>points to <BR>invalid schema location. But i have =
an=20
import without schemaLocation.=20
<P>I attached the wsdl along with this email. For some reason when i =
tried=20
to <BR>load:=20
<P>&nbsp;&lt;schema attributeFormDefault=3D"qualified"=20
elementFormDefault=3D"qualified" <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
targetNamespace=3D"<A=20
href=3D"http://samples.cxdn.com">http://samples.cxdn.com</A>"=20
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; xmlns=3D"<A=20
=
href=3D"http://www.w3.org/2001/XMLSchema">http://www.w3.org/2001/XMLSchem=
a</A>"=20
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; xmlns:payment=3D"<A=20
href=3D"http://payment.org">http://payment.org</A>"&gt;=20
<BR> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; &lt;import =
namespace=3D"<A=20
href=3D"http://payment.org" ?>http://payment.org"/</A>&gt;=20
<BR> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; &lt;element=20
name=3D"paymentRequest" type=3D"payment:PaymentRequestType"/&gt;=20
<BR> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; &lt;element=20
name=3D"digitalReceipt" type=3D"payment:DigitalReceiptType"/&gt;=20
<BR>&nbsp;&nbsp;&nbsp; &lt;/schema&gt;=20
<P>i get this extra &lt;html&gt; resource. Do you think it is =
because the=20
import <BR>doesn't have a "schemaLocation" attribute.=20
<P>thanks, <BR>-muruga=20
=
<BR> ------------------------------------------------------------ ---------=
--=20
<BR>Muruga,=20
<P>It's best to ask question on the forum so that more people will =
benefit=20
<BR>from the answers.=20
<P>Probably there is an import or include in one of your schemas =
who's that=20
<BR>resolves to an http address that yields the HTML you show =
below.&nbsp;=20
You <BR>should figure out the URI of the resource with the content =
you show=20
below <BR>and then look for an import or include with that schema =
location=20
or <BR>namespace.=20
=
<P> ------------------------------------------------------------ ----------=
---=20
<BR>Hi Ed,=20
<P>Thanks for the tip.=20
<P>Rightnow I am manually parsing &lt;schema&gt; elements and =
creating=20
<BR>XSDSchema using XSDFactory and associate that element with =
XSDSchema.=20
<P>But after i parsed all the embedded schemas, i tried printing =
each one=20
<BR>from ResourceSet. <BR>I get this &lt;html&gt; doc as extra =
resource into=20
ResourceSet.=20
<P>&lt;?xml version=3D"1.0" encoding=3D"UTF-8"?&gt; <BR>&lt;html&gt; =

<BR>&lt;head&gt; <BR>&lt;title&gt;Under Construction&lt;/title&gt;=20
<BR>&lt;/head&gt; <BR>&lt;body bgcolor=3D"#ffffff"&gt; =
<BR>&lt;center&gt;=20
<BR>&nbsp; &lt;img height=3D"35" <BR>src=3D"<A=20
=
href=3D"http://banners.directnic.com/construction/const_title.gif">http:/=
/banners.directnic.com/construction/const_title.gif</A>"=20
<BR>width=3D"760"&gt; <BR>&lt;br&gt;=20
<P>&nbsp; &lt;table border=3D"0" cellpadding=3D"0" cellspacing=3D"0" =

width=3D"436"&gt; <BR>&nbsp;&nbsp;&nbsp; &lt;tr&gt;=20
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;td&gt; <BR>&lt;img =
border=3D"0"=20
height=3D"1" <BR>src=3D"<A=20
=
href=3D"http://banners.directnic.com/construction/spacer.gif">http://bann=
ers.directnic.com/construction/spacer.gif</A>"=20
width=3D"171"/&gt; <BR>&lt;/td&gt; <BR>&lt;/tr&gt; =
<BR>&lt;/table&gt;=20
<BR>&lt;/br&gt; <BR>&lt;/img&gt; <BR>&lt;/center&gt; =
<BR>&lt;/body&gt;=20
<BR>&lt;/html&gt;=20
<P>thanks <BR>-muruga=20
<P>"Ed Merks" &lt;merks@ca.ibm.com&gt; wrote in message <BR><A=20
=
href=3D"news:4061F8BC.E20D3E01@ca.ibm.com">news:4061F8BC.E20D3E01@ca.ibm.=
com</A>...=20
<BR>Muruga,=20
<P>All you need to do is register the XSDResourceFactoryImpl to =
handle=20
"wsdl" <BR>extensions just as you do for "xsd".&nbsp;&nbsp; For the=20
resulting "wsdl" resource, <BR>the <BR>getContents() will contain =
all the=20
embedded &lt;schema&gt;s, just as the "xsd" <BR>resource's =
getContents()=20
contains a single schema for the one &lt;schema&gt; in <BR>the =
<BR>.xsd=20
file.=20
<P>Muruga Chinnananchi wrote:=20
<P>&gt; Hi Ed, <BR>&gt; <BR>&gt; Is there any sample/test code to =
look at on=20
how to load the embedded <BR>schemas <BR>&gt; from a wsdl file. =
<BR>&gt;=20
<BR>&gt; i have a wsdl, looks like below: <BR>&gt; <BR>&gt;=20
&lt;definition&gt; <BR>&gt;&nbsp;&nbsp;&nbsp; &lt;types&gt;=20
<BR> &gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&a mp;nbsp;&nbsp;&nbsp; &lt;schema=20
targetNamespace=3D"boo"&gt;=20
=
<BR> &gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&a mp;nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
;&nbsp;=20
&lt;complexType name=3D"booType/&gt;=20
<BR> &gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&a mp;nbsp;&nbsp;&nbsp;&nbsp;=20
&lt;/schema&gt; =
<BR> &gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&a mp;nbsp;&nbsp;&nbsp;=20
&lt;schema targetNamespace=3D"foo" xmlns:b=3D"boo"/&gt;=20
=
<BR> &gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&a mp;nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
;&nbsp;=20
&lt;import namespace=3D"boo"/&gt;=20
=
<BR> &gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&a mp;nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
;=20
&lt;element name=3D"e1" type=3D"b:booType"/&gt;=20
<BR> &gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&a mp;nbsp;&nbsp;&nbsp; =
&lt;/schema&gt;=20
<BR>&gt;&nbsp;&nbsp;&nbsp; &lt;/types&gt; <BR>&gt; =
&lt;/definition&gt;=20
<BR>&gt; <BR>&gt; "foo" schema depends on the "boo" schema. <BR>&gt; =

<BR>&gt; thanks <BR>&gt; -muruga=20
=
<P> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs p;=20
Name: PayFlow.wsdl <BR>&nbsp;&nbsp; PayFlow.wsdl&nbsp;&nbsp;&nbsp; =
Type:=20
unspecified type (application/octet-stream)=20
=
<BR> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;=20
Encoding: x-uuencode</P></BLOCKQUOTE></BLOCKQUOTE></BODY></HTML>

------=_NextPart_000_000E_01C411B6.93FFEE40--
Re: loading embedded schemas from wsdl [message #584746 is a reply to message #39749] Thu, 25 March 2004 11:40 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33137
Registered: July 2009
Senior Member
--------------98B2494BC23E9CCC0C82ABE7
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Muruga,

You could specify a schemaLocation in the <import> or you could use the
ResourceSet's URIConverter's URIMap to map the namespace to the physical
location of the schema.


Muruga Chinnananchi wrote:

> Thanks very much Ed. Oh. Thats why i see that html page. Is there any
> workaround to solve these kind of import? thanks,-muruga
>
> "Ed Merks" <merks@ca.ibm.com> wrote in message
> news:406217ED.7D8FA9EE@ca.ibm.com...Muruaga,
>
> An <import> without a schemaLocation will use the namespace
> as the location.
>
> At the risk of free advertisement for http://payment.org, if
> you type that into you browser, you'll see a page that not
> surprisingly is under construction. ;-)
>
>
> Muruga Chinnananchi wrote:
>
> > Hi Ed,
> >
> > Sorry. i didnt notice..i thought i sent to the news group.
> > Here is the
> > problem.
> > here i am attaching the wsdl, i am sure i don't have any
> > imports which
> > points to
> > invalid schema location. But i have an import without
> > schemaLocation.
> >
> > I attached the wsdl along with this email. For some reason
> > when i tried to
> > load:
> >
> > <schema attributeFormDefault="qualified"
> > elementFormDefault="qualified"
> > targetNamespace="http://samples.cxdn.com"
> > xmlns="http://www.w3.org/2001/XMLSchema"
> > xmlns:payment="http://payment.org">
> > <import namespace="http://payment.org"/>
> > <element name="paymentRequest"
> > type="payment:PaymentRequestType"/>
> > <element name="digitalReceipt"
> > type="payment:DigitalReceiptType"/>
> > </schema>
> >
> > i get this extra <html> resource. Do you think it is
> > because the import
> > doesn't have a "schemaLocation" attribute.
> >
> > thanks,
> > -muruga
> > -------
> > ------------------------------------------------------------ ---
> >
> > Muruga,
> >
> > It's best to ask question on the forum so that more people
> > will benefit
> > from the answers.
> >
> > Probably there is an import or include in one of your
> > schemas who's that
> > resolves to an http address that yields the HTML you show
> > below. You
> > should figure out the URI of the resource with the content
> > you show below
> > and then look for an import or include with that schema
> > location or
> > namespace.
> >
> > ----------
> > ------------------------------------------------------------ --
> >
> > Hi Ed,
> >
> > Thanks for the tip.
> >
> > Rightnow I am manually parsing <schema> elements and
> > creating
> > XSDSchema using XSDFactory and associate that element with
> > XSDSchema.
> >
> > But after i parsed all the embedded schemas, i tried
> > printing each one
> > from ResourceSet.
> > I get this <html> doc as extra resource into ResourceSet.
> >
> > <?xml version="1.0" encoding="UTF-8"?>
> > <html>
> > <head>
> > <title>Under Construction</title>
> > </head>
> > <body bgcolor="#ffffff">
> > <center>
> > <img height="35"
> > src="http://banners.directnic.com/construction/const_title.gif"
> >
> > width="760">
> > <br>
> >
> > <table border="0" cellpadding="0" cellspacing="0"
> > width="436">
> > <tr>
> > <td>
> > <img border="0" height="1"
> > src="http://banners.directnic.com/construction/spacer.gif"
> > width="171"/>
> > </td>
> > </tr>
> > </table>
> > </br>
> > </img>
> > </center>
> > </body>
> > </html>
> >
> > thanks
> > -muruga
> >
> > "Ed Merks" <merks@ca.ibm.com> wrote in message
> > news:4061F8BC.E20D3E01@ca.ibm.com...
> > Muruga,
> >
> > All you need to do is register the XSDResourceFactoryImpl
> > to handle "wsdl"
> > extensions just as you do for "xsd". For the resulting
> > "wsdl" resource,
> > the
> > getContents() will contain all the embedded <schema>s,
> > just as the "xsd"
> > resource's getContents() contains a single schema for the
> > one <schema> in
> > the
> > .xsd file.
> >
> > Muruga Chinnananchi wrote:
> >
> > > Hi Ed,
> > >
> > > Is there any sample/test code to look at on how to load
> > the embedded
> > schemas
> > > from a wsdl file.
> > >
> > > i have a wsdl, looks like below:
> > >
> > > <definition>
> > > <types>
> > > <schema targetNamespace="boo">
> > > <complexType name="booType/>
> > > </schema>
> > > <schema targetNamespace="foo" xmlns:b="boo"/>
> > > <import namespace="boo"/>
> > > <element name="e1" type="b:booType"/>
> > > </schema>
> > > </types>
> > > </definition>
> > >
> > > "foo" schema depends on the "boo" schema.
> > >
> > > thanks
> > > -muruga
> >
> > Name: PayFlow.wsdl
> > PayFlow.wsdl Type: unspecified type
> > (application/octet-stream)
> > Encoding: x-uuencode
>

--------------98B2494BC23E9CCC0C82ABE7
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit

<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
<body bgcolor="#FFFFFF">
Muruga,
<p>You could specify a schemaLocation in the &lt;import> or you could use
the ResourceSet's URIConverter's URIMap to map the namespace to the physical
location of the schema.
<br>&nbsp;
<p>Muruga Chinnananchi wrote:
<blockquote TYPE=CITE><style></style>
<font face="Arial"><font size=-1>Thanks
very much Ed.&nbsp; Oh. Thats why i see that html page. Is there any workaround
to solve these kind of import?</font></font>&nbsp;<font face="Arial"><font size=-1>thanks,</font></font><font face="Arial"><font size=-1>-muruga</font></font>
<blockquote dir=ltr
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">"Ed
Merks" &lt;<a href="mailto:merks@ca.ibm.com">merks@ca.ibm.com</a>> wrote
in message <a href="news:406217ED.7D8FA9EE@ca.ibm.com">news:406217ED.7D8FA9EE@ca.ibm.com</a>...Muruaga,
<p>An &lt;import> without a schemaLocation will use the namespace as the
location.
<p>At the risk of free advertisement for <a href="http://payment.org">http://payment.org</a>,
if you type that into you browser, you'll see a page that not surprisingly
is under construction. ;-)
<br>&nbsp;
<p>Muruga Chinnananchi wrote:
<blockquote TYPE="CITE">Hi Ed,
<p>Sorry. i didnt notice..i thought i sent to the news group. Here is the
<br>problem.
<br>here i am attaching the wsdl, i am sure i don't have any imports which
<br>points to
<br>invalid schema location. But i have an import without schemaLocation.
<p>I attached the wsdl along with this email. For some reason when i tried
to
<br>load:
<p>&nbsp;&lt;schema attributeFormDefault="qualified" elementFormDefault="qualified"
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; targetNamespace="<a href="http://samples.cxdn.com">http://samples.cxdn.com</a>"
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; xmlns="<a href="http://www.w3.org/2001/XMLSchema">http://www.w3.org/2001/XMLSchema</a>"
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; xmlns:payment="<a href="http://payment.org">http://payment.org</a>">
<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; &lt;import namespace="<a href="http://payment.org" ?>http://payment.org"/</a>>
<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; &lt;element name="paymentRequest"
type="payment:PaymentRequestType"/>
<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; &lt;element name="digitalReceipt"
type="payment:DigitalReceiptType"/>
<br>&nbsp;&nbsp;&nbsp; &lt;/schema>
<p>i get this extra &lt;html> resource. Do you think it is because the
import
<br>doesn't have a "schemaLocation" attribute.
<p>thanks,
<br>-muruga
<br> ------------------------------------------------------------ -----------
<br>Muruga,
<p>It's best to ask question on the forum so that more people will benefit
<br>from the answers.
<p>Probably there is an import or include in one of your schemas who's
that
<br>resolves to an http address that yields the HTML you show below.&nbsp;
You
<br>should figure out the URI of the resource with the content you show
below
<br>and then look for an import or include with that schema location or
<br>namespace.
<p> ------------------------------------------------------------ -------------
<br>Hi Ed,
<p>Thanks for the tip.
<p>Rightnow I am manually parsing &lt;schema> elements and creating
<br>XSDSchema using XSDFactory and associate that element with XSDSchema.
<p>But after i parsed all the embedded schemas, i tried printing each one
<br>from ResourceSet.
<br>I get this &lt;html> doc as extra resource into ResourceSet.
<p>&lt;?xml version="1.0" encoding="UTF-8"?>
<br>&lt;html>
<br>&lt;head>
<br>&lt;title>Under Construction&lt;/title>
<br>&lt;/head>
<br>&lt;body bgcolor="#ffffff">
<br>&lt;center>
<br>&nbsp; &lt;img height="35"
<br>src="<a href="http://banners.directnic.com/construction/const_title.gif">http://banners.directnic.com/construction/const_title.gif</a>"
<br>width="760">
<br>&lt;br>
<p>&nbsp; &lt;table border="0" cellpadding="0" cellspacing="0" width="436">
<br>&nbsp;&nbsp;&nbsp; &lt;tr>
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;td>
<br>&lt;img border="0" height="1"
<br>src="<a href="http://banners.directnic.com/construction/spacer.gif">http://banners.directnic.com/construction/spacer.gif</a>"
width="171"/>
<br>&lt;/td>
<br>&lt;/tr>
<br>&lt;/table>
<br>&lt;/br>
<br>&lt;/img>
<br>&lt;/center>
<br>&lt;/body>
<br>&lt;/html>
<p>thanks
<br>-muruga
<p>"Ed Merks" &lt;merks@ca.ibm.com> wrote in message
<br><a href="news:4061F8BC.E20D3E01@ca.ibm.com">news:4061F8BC.E20D3E01@ca.ibm.com</a>...
<br>Muruga,
<p>All you need to do is register the XSDResourceFactoryImpl to handle
"wsdl"
<br>extensions just as you do for "xsd".&nbsp;&nbsp; For the resulting
"wsdl" resource,
<br>the
<br>getContents() will contain all the embedded &lt;schema>s, just as the
"xsd"
<br>resource's getContents() contains a single schema for the one &lt;schema>
in
<br>the
<br>.xsd file.
<p>Muruga Chinnananchi wrote:
<p>> Hi Ed,
<br>>
<br>> Is there any sample/test code to look at on how to load the embedded
<br>schemas
<br>> from a wsdl file.
<br>>
<br>> i have a wsdl, looks like below:
<br>>
<br>> &lt;definition>
<br>>&nbsp;&nbsp;&nbsp; &lt;types>
<br>> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; &lt;schema targetNamespace="boo">
<br>> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&lt;complexType name="booType/>
<br>> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;/schema>
<br>> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; &lt;schema targetNamespace="foo"
xmlns:b="boo"/>
<br>> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&lt;import namespace="boo"/>
<br>> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&lt;element name="e1" type="b:booType"/>
<br>> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; &lt;/schema>
<br>>&nbsp;&nbsp;&nbsp; &lt;/types>
<br>> &lt;/definition>
<br>>
<br>> "foo" schema depends on the "boo" schema.
<br>>
<br>> thanks
<br>> -muruga
<p> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
Name: PayFlow.wsdl
<br>&nbsp;&nbsp; PayFlow.wsdl&nbsp;&nbsp;&nbsp; Type: unspecified type
(application/octet-stream)
<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;
Encoding: x-uuencode</blockquote>
</blockquote>
</blockquote>

</body>
</html>

--------------98B2494BC23E9CCC0C82ABE7--


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: loading embedded schemas from wsdl [message #584769 is a reply to message #39842] Thu, 25 March 2004 22:40 Go to previous message
Eclipse UserFriend
Originally posted by: cipher8000.yahoo.com

This is a multi-part message in MIME format.

------=_NextPart_000_0009_01C41277.1BECABC0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Ed,

Thanks for the hint. Can i associate the same schemaLocation (the wsdl =
location) for the two embedded schemas defined in one wsdl.

thanks
-muruga
"Ed Merks" <merks@ca.ibm.com> wrote in message =
news:4062C53B.E3744A6D@ca.ibm.com...
Muruga,=20
You could specify a schemaLocation in the <import> or you could use =
the ResourceSet's URIConverter's URIMap to map the namespace to the =
physical location of the schema.=20
=20

Muruga Chinnananchi wrote:=20

Thanks very much Ed. Oh. Thats why i see that html page. Is there =
any workaround to solve these kind of import? thanks,-muruga=20
"Ed Merks" <merks@ca.ibm.com> wrote in message =
news:406217ED.7D8FA9EE@ca.ibm.com...Muruaga,=20
An <import> without a schemaLocation will use the namespace as the =
location.=20

At the risk of free advertisement for http://payment.org, if you =
type that into you browser, you'll see a page that not surprisingly is =
under construction. ;-)=20
=20

Muruga Chinnananchi wrote:=20

Hi Ed,=20
Sorry. i didnt notice..i thought i sent to the news group. Here =
is the=20
problem.=20
here i am attaching the wsdl, i am sure i don't have any imports =
which=20
points to=20
invalid schema location. But i have an import without =
schemaLocation.=20

I attached the wsdl along with this email. For some reason when =
i tried to=20
load:=20

<schema attributeFormDefault=3D"qualified" =
elementFormDefault=3D"qualified"=20
targetNamespace=3D"http://samples.cxdn.com"=20
xmlns=3D"http://www.w3.org/2001/XMLSchema"=20
xmlns:payment=3D"http://payment.org">=20
<import namespace=3D"http://payment.org"/>=20
<element name=3D"paymentRequest" =
type=3D"payment:PaymentRequestType"/>=20
<element name=3D"digitalReceipt" =
type=3D"payment:DigitalReceiptType"/>=20
</schema>=20

i get this extra <html> resource. Do you think it is because the =
import=20
doesn't have a "schemaLocation" attribute.=20

thanks,=20
-muruga=20
=
------------------------------------------------------------ -----------=20
Muruga,=20

It's best to ask question on the forum so that more people will =
benefit=20
from the answers.=20

Probably there is an import or include in one of your schemas =
who's that=20
resolves to an http address that yields the HTML you show below. =
You=20
should figure out the URI of the resource with the content you =
show below=20
and then look for an import or include with that schema location =
or=20
namespace.=20

=
------------------------------------------------------------ -------------=
=20
Hi Ed,=20

Thanks for the tip.=20

Rightnow I am manually parsing <schema> elements and creating=20
XSDSchema using XSDFactory and associate that element with =
XSDSchema.=20

But after i parsed all the embedded schemas, i tried printing =
each one=20
from ResourceSet.=20
I get this <html> doc as extra resource into ResourceSet.=20

<?xml version=3D"1.0" encoding=3D"UTF-8"?>=20
<html>=20
<head>=20
<title>Under Construction</title>=20
</head>=20
<body bgcolor=3D"#ffffff">=20
<center>=20
<img height=3D"35"=20
=
src=3D"http://banners.directnic.com/construction/const_title.gif"=20
width=3D"760">=20
<br>=20

<table border=3D"0" cellpadding=3D"0" cellspacing=3D"0" =
width=3D"436">=20
<tr>=20
<td>=20
<img border=3D"0" height=3D"1"=20
src=3D"http://banners.directnic.com/construction/spacer.gif" =
width=3D"171"/>=20
</td>=20
</tr>=20
</table>=20
</br>=20
</img>=20
</center>=20
</body>=20
</html>=20

thanks=20
-muruga=20

"Ed Merks" <merks@ca.ibm.com> wrote in message=20
news:4061F8BC.E20D3E01@ca.ibm.com...=20
Muruga,=20

All you need to do is register the XSDResourceFactoryImpl to =
handle "wsdl"=20
extensions just as you do for "xsd". For the resulting "wsdl" =
resource,=20
the=20
getContents() will contain all the embedded <schema>s, just as =
the "xsd"=20
resource's getContents() contains a single schema for the one =
<schema> in=20
the=20
.xsd file.=20

Muruga Chinnananchi wrote:=20

> Hi Ed,=20
>=20
> Is there any sample/test code to look at on how to load the =
embedded=20
schemas=20
> from a wsdl file.=20
>=20
> i have a wsdl, looks like below:=20
>=20
> <definition>=20
> <types>=20
> <schema targetNamespace=3D"boo">=20
> <complexType name=3D"booType/>=20
> </schema>=20
> <schema targetNamespace=3D"foo" xmlns:b=3D"boo"/>=20
> <import namespace=3D"boo"/>=20
> <element name=3D"e1" type=3D"b:booType"/>=20
> </schema>=20
> </types>=20
> </definition>=20
>=20
> "foo" schema depends on the "boo" schema.=20
>=20
> thanks=20
> -muruga=20

Name: PayFlow.wsdl=20
PayFlow.wsdl Type: unspecified type =
(application/octet-stream)=20
Encoding: x-uuencode

------=_NextPart_000_0009_01C41277.1BECABC0
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2800.1400" name=3DGENERATOR></HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Ed,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Thanks for the hint. Can i =
associate&nbsp;the same=20
schemaLocation (the wsdl location) for the two embedded schemas defined =
in one=20
wsdl.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>thanks</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>-muruga</FONT></DIV>
<BLOCKQUOTE dir=3Dltr=20
style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; =
BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV>"Ed Merks" &lt;<A =
href=3D"mailto:merks@ca.ibm.com">merks@ca.ibm.com</A>&gt;=20
wrote in message <A=20
=
href=3D"news:4062C53B.E3744A6D@ca.ibm.com">news:4062C53B.E3744A6D@ca.ibm.=
com</A>...</DIV>Muruga,=20

<P>You could specify a schemaLocation in the &lt;import&gt; or you =
could use=20
the ResourceSet's URIConverter's URIMap to map the namespace to the =
physical=20
location of the schema. <BR>&nbsp;=20
<P>Muruga Chinnananchi wrote:=20
<BLOCKQUOTE TYPE=3D"CITE">
<STYLE></STYLE>
<FONT face=3DArial><FONT size=3D-1>Thanks very much Ed.&nbsp; Oh. =
Thats why i=20
see that html page. Is there any workaround to solve these kind of=20
import?</FONT></FONT>&nbsp;<FONT face=3DArial><FONT=20
size=3D-1>thanks,</FONT></FONT><FONT face=3DArial><FONT=20
size=3D-1>-muruga</FONT></FONT>=20
<BLOCKQUOTE dir=3Dltr=20
style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; =
BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">"Ed=20
Merks" &lt;<A =
href=3D"mailto:merks@ca.ibm.com">merks@ca.ibm.com</A>&gt;=20
wrote in message <A=20
=
href=3D"news:406217ED.7D8FA9EE@ca.ibm.com">news:406217ED.7D8FA9EE@ca.ibm.=
com</A>...Muruaga,=20

<P>An &lt;import&gt; without a schemaLocation will use the =
namespace as=20
the location.=20
<P>At the risk of free advertisement for <A=20
href=3D"http://payment.org">http://payment.org</A>, if you type =
that into=20
you browser, you'll see a page that not surprisingly is under=20
construction. ;-) <BR>&nbsp;=20
<P>Muruga Chinnananchi wrote:=20
<BLOCKQUOTE TYPE=3D"CITE">Hi Ed,=20
<P>Sorry. i didnt notice..i thought i sent to the news group. =
Here is=20
the <BR>problem. <BR>here i am attaching the wsdl, i am sure i =
don't=20
have any imports which <BR>points to <BR>invalid schema =
location. But i=20
have an import without schemaLocation.=20
<P>I attached the wsdl along with this email. For some reason =
when i=20
tried to <BR>load:=20
<P>&nbsp;&lt;schema attributeFormDefault=3D"qualified"=20
elementFormDefault=3D"qualified" =
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
targetNamespace=3D"<A=20
href=3D"http://samples.cxdn.com">http://samples.cxdn.com</A>"=20
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; xmlns=3D"<A=20
=
href=3D"http://www.w3.org/2001/XMLSchema">http://www.w3.org/2001/XMLSchem=
a</A>"=20
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; xmlns:payment=3D"<A=20
href=3D"http://payment.org">http://payment.org</A>"&gt;=20
<BR> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; &lt;import =
namespace=3D"<A=20
href=3D"http://payment.org" ?>http://payment.org"/</A>&gt;=20
<BR> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; &lt;element=20
name=3D"paymentRequest" type=3D"payment:PaymentRequestType"/&gt; =

<BR> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; &lt;element=20
name=3D"digitalReceipt" type=3D"payment:DigitalReceiptType"/&gt; =

<BR>&nbsp;&nbsp;&nbsp; &lt;/schema&gt;=20
<P>i get this extra &lt;html&gt; resource. Do you think it is =
because=20
the import <BR>doesn't have a "schemaLocation" attribute.=20
<P>thanks, <BR>-muruga=20
=
<BR> ------------------------------------------------------------ ---------=
--=20
<BR>Muruga,=20
<P>It's best to ask question on the forum so that more people =
will=20
benefit <BR>from the answers.=20
<P>Probably there is an import or include in one of your schemas =
who's=20
that <BR>resolves to an http address that yields the HTML you =
show=20
below.&nbsp; You <BR>should figure out the URI of the resource =
with the=20
content you show below <BR>and then look for an import or =
include with=20
that schema location or <BR>namespace.=20
=
<P> ------------------------------------------------------------ ----------=
---=20
<BR>Hi Ed,=20
<P>Thanks for the tip.=20
<P>Rightnow I am manually parsing &lt;schema&gt; elements and =
creating=20
<BR>XSDSchema using XSDFactory and associate that element with=20
XSDSchema.=20
<P>But after i parsed all the embedded schemas, i tried printing =
each=20
one <BR>from ResourceSet. <BR>I get this &lt;html&gt; doc as =
extra=20
resource into ResourceSet.=20
<P>&lt;?xml version=3D"1.0" encoding=3D"UTF-8"?&gt; =
<BR>&lt;html&gt;=20
<BR>&lt;head&gt; <BR>&lt;title&gt;Under =
Construction&lt;/title&gt;=20
<BR>&lt;/head&gt; <BR>&lt;body bgcolor=3D"#ffffff"&gt; =
<BR>&lt;center&gt;=20
<BR>&nbsp; &lt;img height=3D"35" <BR>src=3D"<A=20
=
href=3D"http://banners.directnic.com/construction/const_title.gif">http:/=
/banners.directnic.com/construction/const_title.gif</A>"=20
<BR>width=3D"760"&gt; <BR>&lt;br&gt;=20
<P>&nbsp; &lt;table border=3D"0" cellpadding=3D"0" =
cellspacing=3D"0"=20
width=3D"436"&gt; <BR>&nbsp;&nbsp;&nbsp; &lt;tr&gt;=20
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;td&gt; <BR>&lt;img =
border=3D"0"=20
height=3D"1" <BR>src=3D"<A=20
=
href=3D"http://banners.directnic.com/construction/spacer.gif">http://bann=
ers.directnic.com/construction/spacer.gif</A>"=20
width=3D"171"/&gt; <BR>&lt;/td&gt; <BR>&lt;/tr&gt; =
<BR>&lt;/table&gt;=20
<BR>&lt;/br&gt; <BR>&lt;/img&gt; <BR>&lt;/center&gt; =
<BR>&lt;/body&gt;=20
<BR>&lt;/html&gt;=20
<P>thanks <BR>-muruga=20
<P>"Ed Merks" &lt;merks@ca.ibm.com&gt; wrote in message <BR><A=20
=
href=3D"news:4061F8BC.E20D3E01@ca.ibm.com">news:4061F8BC.E20D3E01@ca.ibm.=
com</A>...=20
<BR>Muruga,=20
<P>All you need to do is register the XSDResourceFactoryImpl to =
handle=20
"wsdl" <BR>extensions just as you do for "xsd".&nbsp;&nbsp; For =
the=20
resulting "wsdl" resource, <BR>the <BR>getContents() will =
contain all=20
the embedded &lt;schema&gt;s, just as the "xsd" <BR>resource's=20
getContents() contains a single schema for the one =
&lt;schema&gt; in=20
<BR>the <BR>.xsd file.=20
<P>Muruga Chinnananchi wrote:=20
<P>&gt; Hi Ed, <BR>&gt; <BR>&gt; Is there any sample/test code =
to look=20
at on how to load the embedded <BR>schemas <BR>&gt; from a wsdl =
file.=20
<BR>&gt; <BR>&gt; i have a wsdl, looks like below: <BR>&gt; =
<BR>&gt;=20
&lt;definition&gt; <BR>&gt;&nbsp;&nbsp;&nbsp; &lt;types&gt;=20
<BR> &gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&a mp;nbsp;&nbsp;&nbsp; =
&lt;schema=20
targetNamespace=3D"boo"&gt;=20
=
<BR> &gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&a mp;nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
;&nbsp;=20
&lt;complexType name=3D"booType/&gt;=20
<BR> &gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&a mp;nbsp;&nbsp;&nbsp;&nbsp;=20
&lt;/schema&gt; =
<BR> &gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&a mp;nbsp;&nbsp;&nbsp;=20
&lt;schema targetNamespace=3D"foo" xmlns:b=3D"boo"/&gt;=20
=
<BR> &gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&a mp;nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
;&nbsp;=20
&lt;import namespace=3D"boo"/&gt;=20
=
<BR> &gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&a mp;nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
;=20
&lt;element name=3D"e1" type=3D"b:booType"/&gt;=20
<BR> &gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&a mp;nbsp;&nbsp;&nbsp; =
&lt;/schema&gt;=20
<BR>&gt;&nbsp;&nbsp;&nbsp; &lt;/types&gt; <BR>&gt; =
&lt;/definition&gt;=20
<BR>&gt; <BR>&gt; "foo" schema depends on the "boo" schema. =
<BR>&gt;=20
<BR>&gt; thanks <BR>&gt; -muruga=20
=
<P> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs p;=20
Name: PayFlow.wsdl <BR>&nbsp;&nbsp; =
PayFlow.wsdl&nbsp;&nbsp;&nbsp; Type:=20
unspecified type (application/octet-stream)=20
=
<BR> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;=20
Encoding:=20
x-uuencode</P></BLOCKQUOTE></BLOCKQUOTE></BLOCKQUOTE></BLOCKQUOTE ></BODY>=
</HTML>

------=_NextPart_000_0009_01C41277.1BECABC0--
Re: loading embedded schemas from wsdl [message #584803 is a reply to message #39873] Fri, 26 March 2004 11:09 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33137
Registered: July 2009
Senior Member
--------------3753996ABFECBD8257B041E7
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Muruga,

If you are asking whether XSDSchema.getSchemaLocation() can be set to
the same location of the .wsdl for all the schemas in one .wsdl, the
answer is yes.


Muruga Chinnananchi wrote:

> Ed, Thanks for the hint. Can i associate the same schemaLocation (the
> wsdl location) for the two embedded schemas defined in one
> wsdl. thanks-muruga
>
> "Ed Merks" <merks@ca.ibm.com> wrote in message
> news:4062C53B.E3744A6D@ca.ibm.com...Muruga,
>
> You could specify a schemaLocation in the <import> or you
> could use the ResourceSet's URIConverter's URIMap to map the
> namespace to the physical location of the schema.
>
>
> Muruga Chinnananchi wrote:
>
> > Thanks very much Ed. Oh. Thats why i see that html page.
> > Is there any workaround to solve these kind of import?
> > thanks,-muruga
> >
> > "Ed Merks" <merks@ca.ibm.com> wrote in message
> > news:406217ED.7D8FA9EE@ca.ibm.com...Muruaga,
> >
> > An <import> without a schemaLocation will use
> > the namespace as the location.
> >
> > At the risk of free advertisement for
> > http://payment.org, if you type that into you
> > browser, you'll see a page that not surprisingly
> > is under construction. ;-)
> >
> >
> > Muruga Chinnananchi wrote:
> >
> > > Hi Ed,
> > >
> > > Sorry. i didnt notice..i thought i sent to the
> > > news group. Here is the
> > > problem.
> > > here i am attaching the wsdl, i am sure i don't
> > > have any imports which
> > > points to
> > > invalid schema location. But i have an import
> > > without schemaLocation.
> > >
> > > I attached the wsdl along with this email. For
> > > some reason when i tried to
> > > load:
> > >
> > > <schema attributeFormDefault="qualified"
> > > elementFormDefault="qualified"
> > > targetNamespace="http://samples.cxdn.com"
> > >
> > > xmlns="http://www.w3.org/2001/XMLSchema"
> > > xmlns:payment="http://payment.org">
> > > <import
> > > namespace="http://payment.org"/>
> > > <element name="paymentRequest"
> > > type="payment:PaymentRequestType"/>
> > > <element name="digitalReceipt"
> > > type="payment:DigitalReceiptType"/>
> > > </schema>
> > >
> > > i get this extra <html> resource. Do you think
> > > it is because the import
> > > doesn't have a "schemaLocation" attribute.
> > >
> > > thanks,
> > > -muruga
> > > -------
> > > ------------------------------------------------------------ ---
> > >
> > > Muruga,
> > >
> > > It's best to ask question on the forum so that
> > > more people will benefit
> > > from the answers.
> > >
> > > Probably there is an import or include in one
> > > of your schemas who's that
> > > resolves to an http address that yields the
> > > HTML you show below. You
> > > should figure out the URI of the resource with
> > > the content you show below
> > > and then look for an import or include with
> > > that schema location or
> > > namespace.
> > >
> > > ----------
> > > ------------------------------------------------------------ --
> > >
> > > Hi Ed,
> > >
> > > Thanks for the tip.
> > >
> > > Rightnow I am manually parsing <schema>
> > > elements and creating
> > > XSDSchema using XSDFactory and associate that
> > > element with XSDSchema.
> > >
> > > But after i parsed all the embedded schemas, i
> > > tried printing each one
> > > from ResourceSet.
> > > I get this <html> doc as extra resource into
> > > ResourceSet.
> > >
> > > <?xml version="1.0" encoding="UTF-8"?>
> > > <html>
> > > <head>
> > > <title>Under Construction</title>
> > > </head>
> > > <body bgcolor="#ffffff">
> > > <center>
> > > <img height="35"
> > > src="http://banners.directnic.com/construction/const_title.gif"
> > >
> > > width="760">
> > > <br>
> > >
> > > <table border="0" cellpadding="0"
> > > cellspacing="0" width="436">
> > > <tr>
> > > <td>
> > > <img border="0" height="1"
> > > src="http://banners.directnic.com/construction/spacer.gif"
> > > width="171"/>
> > > </td>
> > > </tr>
> > > </table>
> > > </br>
> > > </img>
> > > </center>
> > > </body>
> > > </html>
> > >
> > > thanks
> > > -muruga
> > >
> > > "Ed Merks" <merks@ca.ibm.com> wrote in message
> > > news:4061F8BC.E20D3E01@ca.ibm.com...
> > > Muruga,
> > >
> > > All you need to do is register the
> > > XSDResourceFactoryImpl to handle "wsdl"
> > > extensions just as you do for "xsd". For the
> > > resulting "wsdl" resource,
> > > the
> > > getContents() will contain all the embedded
> > > <schema>s, just as the "xsd"
> > > resource's getContents() contains a single
> > > schema for the one <schema> in
> > > the
> > > .xsd file.
> > >
> > > Muruga Chinnananchi wrote:
> > >
> > > > Hi Ed,
> > > >
> > > > Is there any sample/test code to look at on
> > > how to load the embedded
> > > schemas
> > > > from a wsdl file.
> > > >
> > > > i have a wsdl, looks like below:
> > > >
> > > > <definition>
> > > > <types>
> > > > <schema targetNamespace="boo">
> > > > <complexType name="booType/>
> > > > </schema>
> > > > <schema targetNamespace="foo"
> > > xmlns:b="boo"/>
> > > > <import namespace="boo"/>
> > > > <element name="e1"
> > > type="b:booType"/>
> > > > </schema>
> > > > </types>
> > > > </definition>
> > > >
> > > > "foo" schema depends on the "boo" schema.
> > > >
> > > > thanks
> > > > -muruga
> > >
> > > Name: PayFlow.wsdl
> > > PayFlow.wsdl Type: unspecified type
> > > (application/octet-stream)
> > > Encoding: x-uuencode
> >

--------------3753996ABFECBD8257B041E7
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit

<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
<body bgcolor="#FFFFFF">
Muruga,
<p>If you are asking whether XSDSchema.getSchemaLocation() can be set to
the same location of the .wsdl for all the schemas in one .wsdl, the answer
is yes.
<br>&nbsp;
<p>Muruga Chinnananchi wrote:
<blockquote TYPE=CITE>&nbsp;<font face="Arial"><font size=-1>Ed,</font></font>&nbsp;<font face="Arial"><font size=-1>Thanks
for the hint. Can i associate the same schemaLocation (the wsdl location)
for the two embedded schemas defined in one wsdl.</font></font>&nbsp;<font face="Arial"><font size=-1>thanks</font></font><font face="Arial"><font size=-1>-muruga</font></font>
<blockquote dir=ltr
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">"Ed
Merks" &lt;<a href="mailto:merks@ca.ibm.com">merks@ca.ibm.com</a>> wrote
in message <a href="news:4062C53B.E3744A6D@ca.ibm.com">news:4062C53B.E3744A6D@ca.ibm.com</a>...Muruga,
<p>You could specify a schemaLocation in the &lt;import> or you could use
the ResourceSet's URIConverter's URIMap to map the namespace to the physical
location of the schema.
<br>&nbsp;
<p>Muruga Chinnananchi wrote:
<blockquote TYPE="CITE"><style></style>
<font face="Arial"><font size=-1>Thanks
very much Ed.&nbsp; Oh. Thats why i see that html page. Is there any workaround
to solve these kind of import?</font></font> <font face="Arial"><font size=-1>thanks,-muruga</font></font>
<blockquote dir=ltr
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">"Ed
Merks" &lt;<a href="mailto:merks@ca.ibm.com">merks@ca.ibm.com</a>> wrote
in message <a href="news:406217ED.7D8FA9EE@ca.ibm.com">news:406217ED.7D8FA9EE@ca.ibm.com</a>...Muruaga,
<p>An &lt;import> without a schemaLocation will use the namespace as the
location.
<p>At the risk of free advertisement for <a href="http://payment.org">http://payment.org</a>,
if you type that into you browser, you'll see a page that not surprisingly
is under construction. ;-)
<br>&nbsp;
<p>Muruga Chinnananchi wrote:
<blockquote TYPE="CITE">Hi Ed,
<p>Sorry. i didnt notice..i thought i sent to the news group. Here is the
<br>problem.
<br>here i am attaching the wsdl, i am sure i don't have any imports which
<br>points to
<br>invalid schema location. But i have an import without schemaLocation.
<p>I attached the wsdl along with this email. For some reason when i tried
to
<br>load:
<p>&nbsp;&lt;schema attributeFormDefault="qualified" elementFormDefault="qualified"
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; targetNamespace="<a href="http://samples.cxdn.com">http://samples.cxdn.com</a>"
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; xmlns="<a href="http://www.w3.org/2001/XMLSchema">http://www.w3.org/2001/XMLSchema</a>"
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; xmlns:payment="<a href="http://payment.org">http://payment.org</a>">
<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; &lt;import namespace="<a href="http://payment.org" ?>http://payment.org"/</a>>
<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; &lt;element name="paymentRequest"
type="payment:PaymentRequestType"/>
<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; &lt;element name="digitalReceipt"
type="payment:DigitalReceiptType"/>
<br>&nbsp;&nbsp;&nbsp; &lt;/schema>
<p>i get this extra &lt;html> resource. Do you think it is because the
import
<br>doesn't have a "schemaLocation" attribute.
<p>thanks,
<br>-muruga
<br> ------------------------------------------------------------ -----------
<br>Muruga,
<p>It's best to ask question on the forum so that more people will benefit
<br>from the answers.
<p>Probably there is an import or include in one of your schemas who's
that
<br>resolves to an http address that yields the HTML you show below.&nbsp;
You
<br>should figure out the URI of the resource with the content you show
below
<br>and then look for an import or include with that schema location or
<br>namespace.
<p> ------------------------------------------------------------ -------------
<br>Hi Ed,
<p>Thanks for the tip.
<p>Rightnow I am manually parsing &lt;schema> elements and creating
<br>XSDSchema using XSDFactory and associate that element with XSDSchema.
<p>But after i parsed all the embedded schemas, i tried printing each one
<br>from ResourceSet.
<br>I get this &lt;html> doc as extra resource into ResourceSet.
<p>&lt;?xml version="1.0" encoding="UTF-8"?>
<br>&lt;html>
<br>&lt;head>
<br>&lt;title>Under Construction&lt;/title>
<br>&lt;/head>
<br>&lt;body bgcolor="#ffffff">
<br>&lt;center>
<br>&nbsp; &lt;img height="35"
<br>src="<a href="http://banners.directnic.com/construction/const_title.gif">http://banners.directnic.com/construction/const_title.gif</a>"
<br>width="760">
<br>&lt;br>
<p>&nbsp; &lt;table border="0" cellpadding="0" cellspacing="0" width="436">
<br>&nbsp;&nbsp;&nbsp; &lt;tr>
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;td>
<br>&lt;img border="0" height="1"
<br>src="<a href="http://banners.directnic.com/construction/spacer.gif">http://banners.directnic.com/construction/spacer.gif</a>"
width="171"/>
<br>&lt;/td>
<br>&lt;/tr>
<br>&lt;/table>
<br>&lt;/br>
<br>&lt;/img>
<br>&lt;/center>
<br>&lt;/body>
<br>&lt;/html>
<p>thanks
<br>-muruga
<p>"Ed Merks" &lt;merks@ca.ibm.com> wrote in message
<br><a href="news:4061F8BC.E20D3E01@ca.ibm.com">news:4061F8BC.E20D3E01@ca.ibm.com</a>...
<br>Muruga,
<p>All you need to do is register the XSDResourceFactoryImpl to handle
"wsdl"
<br>extensions just as you do for "xsd".&nbsp;&nbsp; For the resulting
"wsdl" resource,
<br>the
<br>getContents() will contain all the embedded &lt;schema>s, just as the
"xsd"
<br>resource's getContents() contains a single schema for the one &lt;schema>
in
<br>the
<br>.xsd file.
<p>Muruga Chinnananchi wrote:
<p>> Hi Ed,
<br>>
<br>> Is there any sample/test code to look at on how to load the embedded
<br>schemas
<br>> from a wsdl file.
<br>>
<br>> i have a wsdl, looks like below:
<br>>
<br>> &lt;definition>
<br>>&nbsp;&nbsp;&nbsp; &lt;types>
<br>> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; &lt;schema targetNamespace="boo">
<br>> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&lt;complexType name="booType/>
<br>> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;/schema>
<br>> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; &lt;schema targetNamespace="foo"
xmlns:b="boo"/>
<br>> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&lt;import namespace="boo"/>
<br>> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&lt;element name="e1" type="b:booType"/>
<br>> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; &lt;/schema>
<br>>&nbsp;&nbsp;&nbsp; &lt;/types>
<br>> &lt;/definition>
<br>>
<br>> "foo" schema depends on the "boo" schema.
<br>>
<br>> thanks
<br>> -muruga
<p> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
Name: PayFlow.wsdl
<br>&nbsp;&nbsp; PayFlow.wsdl&nbsp;&nbsp;&nbsp; Type: unspecified type
(application/octet-stream)
<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;
Encoding: x-uuencode</blockquote>
</blockquote>
</blockquote>
</blockquote>
</blockquote>

</body>
</html>

--------------3753996ABFECBD8257B041E7--


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: loading embedded schemas from wsdl [message #584836 is a reply to message #39937] Fri, 26 March 2004 21:58 Go to previous message
Eclipse UserFriend
Originally posted by: cipher8000.yahoo.com

This is a multi-part message in MIME format.

------=_NextPart_000_000F_01C4133A.6821E820
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Hi Ed,

Thanks very much. It works now. I don't see any html xsd resources in =
the ResourceSet.=20

-Muruga
"Ed Merks" <merks@ca.ibm.com> wrote in message =
news:40640F55.6EDF90CC@ca.ibm.com...
Muruga,=20
If you are asking whether XSDSchema.getSchemaLocation() can be set to =
the same location of the .wsdl for all the schemas in one .wsdl, the =
answer is yes.=20
=20

Muruga Chinnananchi wrote:=20

Ed, Thanks for the hint. Can i associate the same schemaLocation =
(the wsdl location) for the two embedded schemas defined in one wsdl. =
thanks-muruga=20
"Ed Merks" <merks@ca.ibm.com> wrote in message =
news:4062C53B.E3744A6D@ca.ibm.com...Muruga,=20
You could specify a schemaLocation in the <import> or you could =
use the ResourceSet's URIConverter's URIMap to map the namespace to the =
physical location of the schema.=20
=20

Muruga Chinnananchi wrote:=20

Thanks very much Ed. Oh. Thats why i see that html page. Is =
there any workaround to solve these kind of import? thanks,-muruga=20
"Ed Merks" <merks@ca.ibm.com> wrote in message =
news:406217ED.7D8FA9EE@ca.ibm.com...Muruaga,=20
An <import> without a schemaLocation will use the namespace as =
the location.=20

At the risk of free advertisement for http://payment.org, if =
you type that into you browser, you'll see a page that not surprisingly =
is under construction. ;-)=20
=20

Muruga Chinnananchi wrote:=20

Hi Ed,=20
Sorry. i didnt notice..i thought i sent to the news group. =
Here is the=20
problem.=20
here i am attaching the wsdl, i am sure i don't have any =
imports which=20
points to=20
invalid schema location. But i have an import without =
schemaLocation.=20

I attached the wsdl along with this email. For some reason =
when i tried to=20
load:=20

<schema attributeFormDefault=3D"qualified" =
elementFormDefault=3D"qualified"=20
targetNamespace=3D"http://samples.cxdn.com"=20
xmlns=3D"http://www.w3.org/2001/XMLSchema"=20
xmlns:payment=3D"http://payment.org">=20
<import namespace=3D"http://payment.org"/>=20
<element name=3D"paymentRequest" =
type=3D"payment:PaymentRequestType"/>=20
<element name=3D"digitalReceipt" =
type=3D"payment:DigitalReceiptType"/>=20
</schema>=20

i get this extra <html> resource. Do you think it is because =
the import=20
doesn't have a "schemaLocation" attribute.=20

thanks,=20
-muruga=20
=
------------------------------------------------------------ -----------=20
Muruga,=20

It's best to ask question on the forum so that more people =
will benefit=20
from the answers.=20

Probably there is an import or include in one of your =
schemas who's that=20
resolves to an http address that yields the HTML you show =
below. You=20
should figure out the URI of the resource with the content =
you show below=20
and then look for an import or include with that schema =
location or=20
namespace.=20

=
------------------------------------------------------------ -------------=
=20
Hi Ed,=20

Thanks for the tip.=20

Rightnow I am manually parsing <schema> elements and =
creating=20
XSDSchema using XSDFactory and associate that element with =
XSDSchema.=20

But after i parsed all the embedded schemas, i tried =
printing each one=20
from ResourceSet.=20
I get this <html> doc as extra resource into ResourceSet.=20

<?xml version=3D"1.0" encoding=3D"UTF-8"?>=20
<html>=20
<head>=20
<title>Under Construction</title>=20
</head>=20
<body bgcolor=3D"#ffffff">=20
<center>=20
<img height=3D"35"=20
=
src=3D"http://banners.directnic.com/construction/const_title.gif"=20
width=3D"760">=20
<br>=20

<table border=3D"0" cellpadding=3D"0" cellspacing=3D"0" =
width=3D"436">=20
<tr>=20
<td>=20
<img border=3D"0" height=3D"1"=20
src=3D"http://banners.directnic.com/construction/spacer.gif" =
width=3D"171"/>=20
</td>=20
</tr>=20
</table>=20
</br>=20
</img>=20
</center>=20
</body>=20
</html>=20

thanks=20
-muruga=20

"Ed Merks" <merks@ca.ibm.com> wrote in message=20
news:4061F8BC.E20D3E01@ca.ibm.com...=20
Muruga,=20

All you need to do is register the XSDResourceFactoryImpl to =
handle "wsdl"=20
extensions just as you do for "xsd". For the resulting =
"wsdl" resource,=20
the=20
getContents() will contain all the embedded <schema>s, just =
as the "xsd"=20
resource's getContents() contains a single schema for the =
one <schema> in=20
the=20
.xsd file.=20

Muruga Chinnananchi wrote:=20

> Hi Ed,=20
>=20
> Is there any sample/test code to look at on how to load =
the embedded=20
schemas=20
> from a wsdl file.=20
>=20
> i have a wsdl, looks like below:=20
>=20
> <definition>=20
> <types>=20
> <schema targetNamespace=3D"boo">=20
> <complexType name=3D"booType/>=20
> </schema>=20
> <schema targetNamespace=3D"foo" xmlns:b=3D"boo"/>=20
> <import namespace=3D"boo"/>=20
> <element name=3D"e1" type=3D"b:booType"/>=20
> </schema>=20
> </types>=20
> </definition>=20
>=20
> "foo" schema depends on the "boo" schema.=20
>=20
> thanks=20
> -muruga=20

Name: PayFlow.wsdl=20
PayFlow.wsdl Type: unspecified type =
(application/octet-stream)=20
Encoding: x-uuencode

------=_NextPart_000_000F_01C4133A.6821E820
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2800.1400" name=3DGENERATOR></HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Hi Ed,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Thanks very much. It works now. I don't =
see any=20
html xsd resources in the ResourceSet. </FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>-Muruga</FONT></DIV>
<BLOCKQUOTE dir=3Dltr=20
style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; =
BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV>"Ed Merks" &lt;<A =
href=3D"mailto:merks@ca.ibm.com">merks@ca.ibm.com</A>&gt;=20
wrote in message <A=20
=
href=3D"news:40640F55.6EDF90CC@ca.ibm.com">news:40640F55.6EDF90CC@ca.ibm.=
com</A>...</DIV>Muruga,=20

<P>If you are asking whether XSDSchema.getSchemaLocation() can be set =
to the=20
same location of the .wsdl for all the schemas in one .wsdl, the =
answer is=20
yes. <BR>&nbsp;=20
<P>Muruga Chinnananchi wrote:=20
<BLOCKQUOTE TYPE=3D"CITE">&nbsp;<FONT face=3DArial><FONT=20
size=3D-1>Ed,</FONT></FONT>&nbsp;<FONT face=3DArial><FONT =
size=3D-1>Thanks for the=20
hint. Can i associate the same schemaLocation (the wsdl location) =
for the=20
two embedded schemas defined in one wsdl.</FONT></FONT>&nbsp;<FONT=20
face=3DArial><FONT size=3D-1>thanks</FONT></FONT><FONT =
face=3DArial><FONT=20
size=3D-1>-muruga</FONT></FONT>=20
<BLOCKQUOTE dir=3Dltr=20
style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; =
BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">"Ed=20
Merks" &lt;<A =
href=3D"mailto:merks@ca.ibm.com">merks@ca.ibm.com</A>&gt;=20
wrote in message <A=20
=
href=3D"news:4062C53B.E3744A6D@ca.ibm.com">news:4062C53B.E3744A6D@ca.ibm.=
com</A>...Muruga,=20

<P>You could specify a schemaLocation in the &lt;import&gt; or you =
could=20
use the ResourceSet's URIConverter's URIMap to map the namespace =
to the=20
physical location of the schema. <BR>&nbsp;=20
<P>Muruga Chinnananchi wrote:=20
<BLOCKQUOTE TYPE=3D"CITE">
<STYLE></STYLE>
<FONT face=3DArial><FONT size=3D-1>Thanks very much Ed.&nbsp; =
Oh. Thats why=20
i see that html page. Is there any workaround to solve these =
kind of=20
import?</FONT></FONT> <FONT face=3DArial><FONT=20
size=3D-1>thanks,-muruga</FONT></FONT>=20
<BLOCKQUOTE dir=3Dltr=20
style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: =
5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">"Ed=20
Merks" &lt;<A =
href=3D"mailto:merks@ca.ibm.com">merks@ca.ibm.com</A>&gt;=20
wrote in message <A=20
=
href=3D"news:406217ED.7D8FA9EE@ca.ibm.com">news:406217ED.7D8FA9EE@ca.ibm.=
com</A>...Muruaga,=20

<P>An &lt;import&gt; without a schemaLocation will use the =
namespace=20
as the location.=20
<P>At the risk of free advertisement for <A=20
href=3D"http://payment.org">http://payment.org</A>, if you =
type that=20
into you browser, you'll see a page that not surprisingly is =
under=20
construction. ;-) <BR>&nbsp;=20
<P>Muruga Chinnananchi wrote:=20
<BLOCKQUOTE TYPE=3D"CITE">Hi Ed,=20
<P>Sorry. i didnt notice..i thought i sent to the news =
group. Here=20
is the <BR>problem. <BR>here i am attaching the wsdl, i am =
sure i=20
don't have any imports which <BR>points to <BR>invalid =
schema=20
location. But i have an import without schemaLocation.=20
<P>I attached the wsdl along with this email. For some =
reason when i=20
tried to <BR>load:=20
<P>&nbsp;&lt;schema attributeFormDefault=3D"qualified"=20
elementFormDefault=3D"qualified" =
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
targetNamespace=3D"<A=20
=
href=3D"http://samples.cxdn.com">http://samples.cxdn.com</A>"=20
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; xmlns=3D"<A=20
=
href=3D"http://www.w3.org/2001/XMLSchema">http://www.w3.org/2001/XMLSchem=
a</A>"=20
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; xmlns:payment=3D"<A=20
href=3D"http://payment.org">http://payment.org</A>"&gt;=20
<BR> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; &lt;import=20
namespace=3D"<A href=3D"http://payment.org"=20
?>http://payment.org"/</A>&gt;=20
<BR> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; &lt;element=20
name=3D"paymentRequest" =
type=3D"payment:PaymentRequestType"/&gt;=20
<BR> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; &lt;element=20
name=3D"digitalReceipt" =
type=3D"payment:DigitalReceiptType"/&gt;=20
<BR>&nbsp;&nbsp;&nbsp; &lt;/schema&gt;=20
<P>i get this extra &lt;html&gt; resource. Do you think it =
is=20
because the import <BR>doesn't have a "schemaLocation" =
attribute.=20
<P>thanks, <BR>-muruga=20
=
<BR> ------------------------------------------------------------ ---------=
--=20
<BR>Muruga,=20
<P>It's best to ask question on the forum so that more =
people will=20
benefit <BR>from the answers.=20
<P>Probably there is an import or include in one of your =
schemas=20
who's that <BR>resolves to an http address that yields the =
HTML you=20
show below.&nbsp; You <BR>should figure out the URI of the =
resource=20
with the content you show below <BR>and then look for an =
import or=20
include with that schema location or <BR>namespace.=20
=
<P> ------------------------------------------------------------ ----------=
---=20
<BR>Hi Ed,=20
<P>Thanks for the tip.=20
<P>Rightnow I am manually parsing &lt;schema&gt; elements =
and=20
creating <BR>XSDSchema using XSDFactory and associate that =
element=20
with XSDSchema.=20
<P>But after i parsed all the embedded schemas, i tried =
printing=20
each one <BR>from ResourceSet. <BR>I get this &lt;html&gt; =
doc as=20
extra resource into ResourceSet.=20
<P>&lt;?xml version=3D"1.0" encoding=3D"UTF-8"?&gt; =
<BR>&lt;html&gt;=20
<BR>&lt;head&gt; <BR>&lt;title&gt;Under =
Construction&lt;/title&gt;=20
<BR>&lt;/head&gt; <BR>&lt;body bgcolor=3D"#ffffff"&gt;=20
<BR>&lt;center&gt; <BR>&nbsp; &lt;img height=3D"35" =
<BR>src=3D"<A=20
=
href=3D"http://banners.directnic.com/construction/const_title.gif">http:/=
/banners.directnic.com/construction/const_title.gif</A>"=20
<BR>width=3D"760"&gt; <BR>&lt;br&gt;=20
<P>&nbsp; &lt;table border=3D"0" cellpadding=3D"0" =
cellspacing=3D"0"=20
width=3D"436"&gt; <BR>&nbsp;&nbsp;&nbsp; &lt;tr&gt;=20
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;td&gt; <BR>&lt;img =
border=3D"0"=20
height=3D"1" <BR>src=3D"<A=20
=
href=3D"http://banners.directnic.com/construction/spacer.gif">http://bann=
ers.directnic.com/construction/spacer.gif</A>"=20
width=3D"171"/&gt; <BR>&lt;/td&gt; <BR>&lt;/tr&gt; =
<BR>&lt;/table&gt;=20
<BR>&lt;/br&gt; <BR>&lt;/img&gt; <BR>&lt;/center&gt;=20
<BR>&lt;/body&gt; <BR>&lt;/html&gt;=20
<P>thanks <BR>-muruga=20
<P>"Ed Merks" &lt;merks@ca.ibm.com&gt; wrote in message =
<BR><A=20
=
href=3D"news:4061F8BC.E20D3E01@ca.ibm.com">news:4061F8BC.E20D3E01@ca.ibm.=
com</A>...=20
<BR>Muruga,=20
<P>All you need to do is register the XSDResourceFactoryImpl =
to=20
handle "wsdl" <BR>extensions just as you do for =
"xsd".&nbsp;&nbsp;=20
For the resulting "wsdl" resource, <BR>the <BR>getContents() =
will=20
contain all the embedded &lt;schema&gt;s, just as the "xsd"=20
<BR>resource's getContents() contains a single schema for =
the one=20
&lt;schema&gt; in <BR>the <BR>.xsd file.=20
<P>Muruga Chinnananchi wrote:=20
<P>&gt; Hi Ed, <BR>&gt; <BR>&gt; Is there any sample/test =
code to=20
look at on how to load the embedded <BR>schemas <BR>&gt; =
from a wsdl=20
file. <BR>&gt; <BR>&gt; i have a wsdl, looks like below: =
<BR>&gt;=20
<BR>&gt; &lt;definition&gt; <BR>&gt;&nbsp;&nbsp;&nbsp; =
&lt;types&gt;=20
<BR> &gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&a mp;nbsp;&nbsp;&nbsp; =
&lt;schema=20
targetNamespace=3D"boo"&gt;=20
=
<BR> &gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&a mp;nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
;&nbsp;=20
&lt;complexType name=3D"booType/&gt;=20
=
<BR> &gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&a mp;nbsp;&nbsp;&nbsp;&nbsp;=20
&lt;/schema&gt;=20
<BR> &gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&a mp;nbsp;&nbsp;&nbsp; =
&lt;schema=20
targetNamespace=3D"foo" xmlns:b=3D"boo"/&gt;=20
=
<BR> &gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&a mp;nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
;&nbsp;=20
&lt;import namespace=3D"boo"/&gt;=20
=
<BR> &gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&a mp;nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
;=20
&lt;element name=3D"e1" type=3D"b:booType"/&gt;=20
<BR> &gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&a mp;nbsp;&nbsp;&nbsp;=20
&lt;/schema&gt; <BR>&gt;&nbsp;&nbsp;&nbsp; &lt;/types&gt; =
<BR>&gt;=20
&lt;/definition&gt; <BR>&gt; <BR>&gt; "foo" schema depends =
on the=20
"boo" schema. <BR>&gt; <BR>&gt; thanks <BR>&gt; -muruga=20
=
<P> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs p;=20
Name: PayFlow.wsdl <BR>&nbsp;&nbsp; =
PayFlow.wsdl&nbsp;&nbsp;&nbsp;=20
Type: unspecified type (application/octet-stream)=20
=
<BR> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;=20
Encoding:=20
=
x-uuencode</P></BLOCKQUOTE></BLOCKQUOTE></BLOCKQUOTE></BLOCKQUOTE ></BLOCK=
QUOTE></BLOCKQUOTE></BODY></HTML>

------=_NextPart_000_000F_01C4133A.6821E820--
Previous Topic:loading embedded schemas from wsdl
Next Topic:broken links to UML diagram images
Goto Forum:
  


Current Time: Fri Apr 19 17:12:59 GMT 2024

Powered by FUDForum. Page generated in 0.03459 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top