Win a copy of The Journey To Enterprise Agility this week in the Agile and Other Processes forum! And see the welcome thread for 20% off.
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
Sheriffs:
  • Paul Clapham
  • Junilu Lacar
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Ganesh Patekar
  • Tim Moores
  • Pete Letkeman
  • Stephan van Hulst
Bartenders:
  • Carey Brown
  • Tim Holloway
  • Joe Ess

Web Service can't read my SOAP  RSS feed

 
Ranch Hand
Posts: 115
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
My WebService (developed using metro and wsdl-first) CAN read this:

but CANNOT read this:

So if add the ns2 namespace, it's working. Why doesn't it work without it ? Is the second SOAP wrong ?
The second SOAP is created with delphi, so it should be correct. I have no problem getting something from the WS.

Please help,
Alex.
 
Ranch Hand
Posts: 2198
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi!
This is a tricky one and I am not sure that what I say is correct, but I have a feeling that there is indeed a difference between the two SOAP messages as follows:
  • In the first SOAP message, with the ns2 namespace prefix, the <uploadText> element obviously belongs to the ns2 namespace, while the <text> element does not!
  • In the second SOAP message, where the namespace soapwebservices.jdevelop.eu is the default namespace, both the <uploadText> element as well as the <text> element belongs to the namespace soapwebservices.jdevelop.eu.

  • Reference: http://www.w3schools.com/XML/xml_namespaces.asp
    Best wishes!
     
    Alex Parvan
    Ranch Hand
    Posts: 115
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator

    Ivan Krizsan wrote:Hi!
    This is a tricky one and I am not sure that what I say is correct, but I have a feeling that there is indeed a difference between the two SOAP messages as follows:

  • In the first SOAP message, with the ns2 namespace prefix, the <uploadText> element obviously belongs to the ns2 namespace, while the <text> element does not!
  • In the second SOAP message, where the namespace soapwebservices.jdevelop.eu is the default namespace, both the <uploadText> element as well as the <text> element belongs to the namespace soapwebservices.jdevelop.eu.

  • Reference: http://www.w3schools.com/XML/xml_namespaces.asp
    Best wishes!


    Hmm, actually, that does make sense. Because if i call an operation without a parameter like getTime(), the WS can read my SOAP, because getTime has correct xmlns and there is nothing inside it.

    As soon as i can confirm this, or maybe find something else, i will post a reply here.
     
    It is sorta covered in the JavaRanch Style Guide.
    • Post Reply Bookmark Topic Watch Topic
    • New Topic
    Boost this thread!