• 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
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

What Java Data Types can be used with SOAP?

 
Ranch Hand
Posts: 66
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello everyone, I'm using Axis to generate my web services. I'm trying to figure out what Java Data Types I can actually pass in and out of methods. I know I can use Axis's simple data types e.g., arrays, String, Calendar, boolean, etc... But I've also heard I can use any type that adheres to the JavaBean spec. I.e., it has only 1 contructor that accepts no parameters and has only get and set methods. How will a .Net client demarshall this arbitrary JavaBean type on their end? Also, I've also heard I can pass any type I want in Java e.g., a DriverManager, or a JFrame, as long as I create the serialization code. Again, how will a .Net client handle this? Should I just stay in the safety of using Axis's simple built in types? Thanks, Prem Saggar. :roll:
[ May 15, 2005: Message edited by: prem saggar ]
 
Ranch Hand
Posts: 1934
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
a search in google with 'SOAP java data type' did yield some interesting urls that might be helpful for you.
 
author and deputy
Posts: 3150
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by prem saggar:
How will a .Net client demarshall this arbitrary JavaBean type on their end? Also, I've also heard I can pass any type I want in Java e.g., a DriverManager, or a JFrame, as long as I create the serialization code. Again, how will a .Net client handle this?



You can send and receive javabeans(encoded as complex types) between java and .NET using soap.
For example a javabean class like
public class Order
{

private String customerName;
private String shippingAddress;
private String itemCodes[];
private int quantities[];

// Bean accessors
...
}

can be sent and received between the java and .net provided you made proper de/serialization configuration in the deployment descriptor. A javabean containing bean array is also possible. Check this example that comes with Axis =>http://cvs.apache.org/viewcvs.cgi/ws-axis/java/samples/userguide/example5/
 
Ranch Hand
Posts: 72
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
my two cents..dont know about jframe and all but be VERY VERY CAREFUL using Collections...gives nightmares in prod
 
And tomorrow is the circus! We can go to the circus! I love the circus! We can take this tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic