Question: WSDL file has references in an XSD file

This is a discussion on Question: WSDL file has references in an XSD file within the Apache forums in Application Servers & Tools category; Axis2/C 1.5 Solaris 10 Sparc 64 bits. I am a newbie to Axis2, and so my questions may appear trivial. Please bear with me. I am generating the client only which will consume a remotely hosted webservice. I have been given a WSDL and an XSD of the webservice. The WSDL contains many references in the XSD. I ran the WSDL2C tool: $ sh WSDL2C.sh -uri SSM-SOAPWS.wsdl -d none When I run the WSDL2C tool, I can see that the stub (header and C) is generated. My question is, how does this work when it cannot find the undefined references? ...

Go Back   Application Development Forum > Application Servers & Tools > Apache

Object Mix

Register FAQ Calendar Search Today's Posts Mark Forums Read
  #1  
Old 08-27-2008, 10:01 AM
Ambarish Mitra
Guest
 
Default Question: WSDL file has references in an XSD file

Axis2/C 1.5
Solaris 10 Sparc 64 bits.

I am a newbie to Axis2, and so my questions may appear trivial. Please bear
with me.

I am generating the client only which will consume a remotely hosted
webservice. I have been given a WSDL and an XSD of the webservice. The WSDL
contains many references in the XSD.

I ran the WSDL2C tool:

$ sh WSDL2C.sh -uri SSM-SOAPWS.wsdl -d none

When I run the WSDL2C tool, I can see that the stub (header and C) is
generated. My question is, how does this work when it cannot find the
undefined references? I mean, I did not pass the xsd to the command line -
so, I had expected this to fail with undefined/unresolved references in the
WSDL.

Can someone please explain, or am I wrong?

Thanks.


DISCLAIMER
==========
This e-mail may contain privileged and confidential information which is the property of Persistent Systems Ltd. It is intended only for the use of the individual or entity to which it is addressed. If you are not the intended recipient, you are not authorized to read, retain, copy, print, distribute or use this message. If you have received this communication in error, please notify the sender and delete all copies of this message. Persistent Systems Ltd. does not accept any liability for virus infected mails.
Reply With Quote
  #2  
Old 08-27-2008, 10:39 AM
Martina08
Guest
 
Default Re: Question: WSDL file has references in an XSD file


Hi,
I think in the wsdl file there is a location for the XSD file, so you dont
have to add this to the command.
But i'm not be sure.....
I generated stubs too and i didnt add the xsd file to the command. It works
fine I'm glad there is somebody who works with axis2c so you can change
experience ....
--
View this message in context: http://www.nabble.com/Question%3A-WS...p19182426.html
Sent from the Axis - C++ - User mailing list archive at Nabble.com.
Reply With Quote
  #3  
Old 08-27-2008, 10:49 AM
Rajika Kumarasiri
Guest
 
Default Re: Question: WSDL file has references in an XSD file

On Wed, Aug 27, 2008 at 8:09 PM, Martina08 <martin.willitzkat-Mmb7MZpHnFY@public.gmane.org> wrote:
Yes, have a look at your WSDL file, you'll see XSD file is included there.

-Rajika

>
> Hi,
> I think in the wsdl file there is a location for the XSD file, so you dont
> have to add this to the command.
> But i'm not be sure.....
> I generated stubs too and i didnt add the xsd file to the command. It works
> fine I'm glad there is somebody who works with axis2c so you can change
> experience ....
> --
> View this message in context:
> http://www.nabble.com/Question%3A-WS...p19182426.html
> Sent from the Axis - C++ - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-c-user-unsubscribe-28n8OjmUYWfN...blic.gmane.org
> For additional commands, e-mail: axis-c-user-help-28n8OjmUYWfNLxjTenL...blic.gmane.org
>
>



--
http://wso2.org/
http://llvm.org/
http://osdev.org/

Reply With Quote
  #4  
Old 08-28-2008, 04:44 PM
Dimuthu Gamage
Guest
 
Default Re: Question: WSDL file has references in an XSD file

Hi,
Yea you dont need to aware about the xsd files as far as they are in an
accessible locations. Anyway if you use '-d none' codegen will ignore the
xsds. So to generate a xsd aware code you may use the -d adb with -u option.

sh WSDL2C.sh -uri SSM-SOAPWS.wsdl -d adb -u

Thanks
Dimuthu


On Wed, Aug 27, 2008 at 7:39 AM, Martina08 <martin.willitzkat-Mmb7MZpHnFY@public.gmane.org> wrote:

>
> Hi,
> I think in the wsdl file there is a location for the XSD file, so you dont
> have to add this to the command.
> But i'm not be sure.....
> I generated stubs too and i didnt add the xsd file to the command. It works
> fine I'm glad there is somebody who works with axis2c so you can change
> experience ....
> --
> View this message in context:
> http://www.nabble.com/Question%3A-WS...p19182426.html
> Sent from the Axis - C++ - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-c-user-unsubscribe-28n8OjmUYWfN...blic.gmane.org
> For additional commands, e-mail: axis-c-user-help-28n8OjmUYWfNLxjTenL...blic.gmane.org
>
>


Reply With Quote
Reply


Thread Tools
Display Modes


All times are GMT -5. The time now is 08:16 PM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
vB Ad Management by =RedTyger=

In an effort to better serve ads to our visitors, cookies are used on objectmix.com. For more information, check out our Privacy Policy.