[prev in list] [next in list] [prev in thread] [next in thread] 

List:       axis-c-dev
Subject:    RE: WSDL2Ws and the GoogleSearch.wsdl
From:       Amila Rathnayake <writetoamila () yahoo ! com>
Date:       2004-05-26 10:27:13
Message-ID: 20040526102713.43673.qmail () web50709 ! mail ! yahoo ! com
[Download RAW message or body]


Hi Fred,

As you said, there is no service in inquire_v2.wsdl
that they have
given. So I added following service to the
inquire_v2.wsdl and when I
tried to generate client stubs it gives following
NullPointerException.

Service :
=========

<binding>
</binding>

  <!-- Endpoint for UDDI_Inquire Web APIs -->

  <service name="Inquire">
    <port binding="tns:InquireSoap" name="Inquire">
      <soap:address location="urn:uddi-org:api_v2"/>
    </port>
  </service>

</definitions>

Command executed and the output
===============================

C:\AXIS_Extract\lib\axis\uddi_wsdl>Java -classpath
..\wsdl2ws.jar;%classpath%
org.apache.axis.wsdl.wsdl2ws.WSDL2Ws
inquire_v2.wsdl -o./ClientOut -lc++ -sclient
args =
args =
args =
1
############## the type found
={urn:uddi-org:api_v2}relatedBusinessesList
############## the type found
={urn:uddi-org:api_v2}truncated
Exception in thread "main"
java.lang.NullPointerException at
org.apache.axis.wsdl.wsdl2ws.CUtils.getRestrictionBaseAndValues(CUtils.j
ava:330)
  at
org.apache.axis.wsdl.wsdl2ws.WSDL2Ws.createTypeInfo(WSDL2Ws.java:481)
  at
org.apache.axis.wsdl.wsdl2ws.WSDL2Ws.createTypeInfo(WSDL2Ws.java:438)
  at
org.apache.axis.wsdl.wsdl2ws.WSDL2Ws.createTypeInfo(WSDL2Ws.java:541)
  at
org.apache.axis.wsdl.wsdl2ws.WSDL2Ws.getTypeInfo(WSDL2Ws.java:349)
  at
org.apache.axis.wsdl.wsdl2ws.WSDL2Ws.genarateWrappers(WSDL2Ws.java:374)
  at
org.apache.axis.wsdl.wsdl2ws.WSDL2Ws.main(WSDL2Ws.java:645)



Are we sure about the given namespaces in this wsdl
and that they
contain all the necessary information like
xsd:restriction fields in the
given schema (http://www.uddi.org/schema/uddi_v2.xsd).

Sometimes the tool may require the restriction
attribute/s and may not
handle the situations where the restrictions are not
set for the complex
types.

Regards,
Amila Rathnayake.



> -----Original Message-----
> From: Fred Preston [mailto:PRESTONF@uk.ibm.com]
> Sent: Tuesday, May 25, 2004 9:08 PM
> To: Amila Rathnayake
> Cc: John Hawkins
> Subject: Fw: WSDL2Ws and the GoogleSearch.wsdl
> 
> 
> 
> Hi Amila,
>       The wsdl was taken from www.uddi.org, version
2 pages and is as
> follows:-
> 
> (See attached file: inquire_v2.wsdl)
> 
> The WSDL2WS would not compile because there was no
service.  When one
was
> added, it would still not compile
> 
> Regards,
> 
> Fred Preston.
> Software Engineer
> Business Integration
> 
> Mail Point 188,  IBM Hursley Park
> Winchester, Hampshire, SO21 2JN, UK
> Notes id:    Fred Preston/UK/IBM @ IBMGB
> Internet:      prestonf@uk.ibm.com
> Tel:             +44 1962 817180
> Internal:      247180
> 
> ----- Forwarded by Fred Preston/UK/IBM on 25/05/04
15:58 -----
> 
>                       John Hawkins
>                                                To:  
    Fred
> Preston/UK/IBM@IBMGB
>                       25/05/04 12:51           cc:
>                                               
Subject:  Fw: WSDL2Ws
and
> the GoogleSearch.wsdl
> 
> 
> 
> 
> 
> 
> Can you send the wsdl- and see what Amila can make
of them ?
> 
> John Hawkins
> IBM,
> AspectX Architect,
> C web services client dev.
> 
> +44 (0) 1962 817131
> 
> ----- Forwarded by John Hawkins/UK/IBM on 25/05/2004
12:50 -----
> 
>              Amila Rathnayake
>              <writetoamila@yah
>              oo.com>
To
>                                        Apache AXIS C
Developers List
>              25/05/2004 12:40         
<axis-c-dev@ws.apache.org>
>
cc
> 
>              Please respond to
Subject
>               "Apache AXIS C           RE: WSDL2Ws
and the
>              Developers List"         
GoogleSearch.wsdl
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> Hi,
> 
> I am not clear about this. If you can send me the
wsdl, I can workout
and
> try to generate Stubs. So can you pls send me the
wsdl file.
> 
> Amila Rathnayake.
> 
> John Hawkins <HAWKINSJ@uk.ibm.com> wrote:
> 
> 
> 
> 
>  fyi: we are trying to generate the stubs for uddi
and are having
>  substantial difficulties :-(
> 
> 
>  John Hawkins
> 
> 
> 
> 
> 
>  Amila Rathnayake
>  oo.com> To
>  axis-c-dev@ws.apache.org
>  24/05/2004 09:27 cc
>  axis-c-user@ws.apache.org
>  Subject
>  Please respond to RE: WSDL2Ws and the
>  "Apache AXIS C GoogleSearch.wsdl
>  Developers List"
> 
> 
> 
> 
> 
> 
> 
> 
> 
>  Hi Michael,
> 
>  If you managed to generate the stubs and skeletons
for
Claculator.wsdl
>  then
>  you should not be having any problem in generating
for any wsdl. I
also
>  tried that GoogleSearch.wsdl and generated the
Stubs and skeletons.
If
> you
>  need the output files, I can send those files only
to your email.
> (because
>  I don't like to fill up mail boxes of all the
subscribers of the
list)
> 
>  If you have set all the class! paths accurately you
just need to do
> these;
> 
>  1). Copy the GoogleSearch.wsdl and wsdl2ws.jar file
into a folder.
(say
>  )
> 
>  2). In a command prompt change directory to and
execute the
>  following commands to generate Client Stubs and
Server Skeletons.
> 
>  3). Java -classpath .\wsdl2ws.jar;%classpath%
>  org.apache.axis.wsdl.wsdl2ws.WSDL2Ws
GoogleSearch.wsdl -o./ServerOut
-
> lc++
>  -sserver
> 
>  * This will generate the ServerOut folder in side
the
> 
>  4). Java -classpath .\wsdl2ws.jar;%classpath%
>  org.apache.axis.wsdl.wsdl2ws.WSDL2Ws
GoogleSearch.wsdl -o./ClientOut
-
> lc++
>  -sclient
> 
>  * This will generate the ClientOut folder in side
the
> 
>  Hope this will be helpful.
> 
>  Thanks,
>  Amila Rathnayake.
> 
>  > -----Original Message-----
>  > From: michael seitlinger
[mailto:seitim@sbox.tugraz.at]
>  > Sent: Saturday, May 08, 2004 7:59 PM
>  > To: Apache AXIS C User List
>  > Subject: WSDL2Ws and the GoogleSearch.wsdl
>  >
>  > Hy,
>  >
>  > I am working with AXIS C++ 1.1, and i try to
generate with the
WSDL2Ws
>  > tool, the client side stubs according to the
GoogleSearch.wsdl,
>  > provided from
http://api.google.com/GoogleSearch.wsdl.
>  >
>  > * java org.apache.axis.wsdl.wsdl2ws.WSDL2Ws
GoogleSearch.wsdl -lc++
>  > -sclient, doesn't work!
>  > * For example creating client side stubs from the
provided
>  >
>  > calculator.wsdl, was no problem!
>  > Whats the problem?
>  > Should WSDL2Ws be able to work with such complex
wsdl file like
>  > Googlesearch .wsdl ?
>  >
>  > Kind regards,
>  >
>  > Michael Seitlinger
> 
> 
> 
>  Do you Yahoo!?
>  Yahoo! Domains - Claim yours for only $14.70/year
> 
> 
> 
> 
> Do you Yahoo!?
> Friends. Fun. Try the all-new Yahoo! Messenger



	
		
__________________________________
Do you Yahoo!?
Friends.  Fun.  Try the all-new Yahoo! Messenger.
http://messenger.yahoo.com/ 
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic