• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
  • Paul Clapham
  • Liutauras Vilda
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

Rational Application Developer V7 - Webservice

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi All,

I got RAD 7 installed on my PC and tried to generate webservice from WSDL. RAD is not generating classes for simpleType elements defined in xsd.

Previously with WSAD 5.1.2 separate classes were generated for simple types. I also checked option "Generate code for all elements, even unreferenced ones" in RAD 7 but it did not help.

RAD 7 is not generating separate class for the following simple type and other simple types. LogicalId is treated by RAD as a simple String type.

<xsd:simpleType name="LogicalId">
<xsd:restriction base="xsd:string">
<xsd:minLength value="1"/>
</xsd:restriction>
</xsd:simpleType>

Has any one encountered this problem? Any help is greatly appreciated.
 
Ranch Hand
Posts: 74
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Different behavior you are seeing is b'cos of different emitters. Which version of server you are targeting from RAD7? WAS v5.1, v6 or v6.1?

WSAD 5.1.2 supported J2EE 1.3's version of Web Services. Also, there was a different Web Service engine available too (IBM SOAP).RAD V7 relies solely on JAX-RPC based technologies. The JAX-RPC specification provides some rules about the mapping of XML types to Java and vice versa. From what I recall, Java primitives and simple types are the result of xsd simple types for the most part.

If you were using IBM SOAP in WSAD 5.1.2 then it is totally different.

Basically, RAD v7 uses following depending on your target:

1) WAS V6.1, J2EE 1.4 - use WAS V6.1 Java2WSDL and WSDL2Java
2) WAS V6, J2EE 1.4 - use WAS V6 Java2WSDL and WSDL2Java
3) WAS V5.1/J2EE 1.3 - use WAS V5.1 Java2WSDL and WSDL2Java

......if you use the IBM WebSphere JAX-RPC Web Service runtime. Apache Axis is available too if you wanted to.

Pl. read through IBM online Technotes for different emitters etc...

Hope this explains the behavior.

Cheers,
H. Kanthi
 
chandra chittepu
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks Kanthi for your reply.

I am targetting WAS 6.1 server. I was using JAX-RPC in WSAD 5.1.2. Is there any difference between WSAD 5.1.2 and RAD 7 WSDL2Java
emitters? I will also go through IBM online Technotes.

Is Apache Axis included in RAD 7?


- Chandra.
 
Hanumanth Kanthi
Ranch Hand
Posts: 74
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Yes, WSDL emitters are different btw. v5.1 and 6.1...no doubt about it.

I don't think Axis comes with RAD-7 but you can download from apache org and experiment it using with RAD-7 on your own if you wanted to...... but sure you will be on your own for that....

Cheers,
H. Kanthi
[ February 21, 2007: Message edited by: Hanumanth Kanthi ]
 
You had your fun. Now it's time to go to jail. Thanks for your help tiny ad.
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic