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

Difference Tags of Input XML sent and that recieved on the server

 
Ranch Hand
Posts: 264
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Friends,

I created a web service having some tags.

I expected a tag fname. But the tag that the client is sending is <FirstName>
and to my surprise the value that I recieve on my server side in fname tag is the same as the client has supplied in FirstName tag.

My question is,
1) how and where does this mapping of FirstName to fname happens?
2) Also some data that client cliams that he has sent, has not reached the server.
3) Some of the tags are coming as blank, when recorded at the server side through Handler.
4) Some of the data in the tags has got changed. For example: Client says, he has sent <Branch>1</Branch> and on my server, I have recieved <branch>376</branch>

Can someone please give me a clue, why such a situation has occured?

The tag names should remain same irrespective of the client. Isn't it???

Regards
Yogesh
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I don't think we can answer any of these question without knowing a lot more about how both the client and the server are implemented.
 
Yogesh Gandhi
Ranch Hand
Posts: 264
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I agree to your concern. But I have not worked much on webservices.

Though I know, how to generate client from WSDL.
In my practical experience, I had never seen the tags getting changed when a user generates CLIENT from a WSDL.

What help, I wanted from you is, that if any of you guys have generated client using different frameworks available for generating client, like axis2, .net etc. Then is there a change in the tag names that your client generates and what is being used on the server?

Presently, I don't even know, what framework my user has used to generate the client. Though server is in my control, and we are running the server on websphere.

If required, I can share the SOAP version and other specifications of my WSDL.
 
Ulf Dittmer
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Let's take a step back and ask: why does it matter what the tags are called, as long as everyhing works? SOAP and WSDL abstract away that kind of detail.
 
Yogesh Gandhi
Ranch Hand
Posts: 264
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Yes, you are right.
It should not matter to me as long as I recieve correct data on the server in the correct tags.

But that is what is not happening.

XML sent by Client.



XML recieved on the server



As you can clearly notice, there are many tags, whose value is not recieved on the server. Many tags whose value has been recieved incorrectly.

I have placed a handler on my side, via which I am recording, what content I am recieving on the server.

 
Yogesh Gandhi
Ranch Hand
Posts: 264
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
XML sent by client.

 
His brain is the size of a cherry pit! About the size of this ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic