473,799 Members | 3,121 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Namespace not included in SoapClient Request XML

3 New Member
We are using WSDL in soapclient to access the java web service.The soapclient request is not formed as required by the service.

Namespace is not included in one ComplexType element(<GSTBTR eq>) in request XML which causes the problem in getting response from the service.

Request XML generated by SoapClient:

<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap .org/soap/envelope/" xmlns:ns1="http ://abc.com/GBTSTo/GBTSTReq/01" xmlns:ns2="http ://abc.com/GBTST">
<SOAP-ENV:Body>
<ns2:gBlTST>
<GSTBTReq> <!-- TODO : NAMESPACE DOES NOT GET MAPPED HERE -->
<CustomerNumber >123</CustomerNumber>
<Unit>ABC</Unit>
</GSTBTReq>
</gBlTST>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>

Following is the part of WSDL to create soapclient.

<s:schema elementFormDefa ult="qualified" targetNamespace ="http://abc.com/GBTST" xmlns:conv="htt p://www.openuri.org/2002/04/soap/conversation/" xmlns:cw="http://www.openuri.org/2002/04/wsdl/conversation/" xmlns:http="htt p://schemas.xmlsoap .org/wsdl/http/"
<s:import namespace="http ://abc.com/GBTST/GBTSTReq/01"/>
<s:import namespace="http ://abc.com/GBTST/GBTSTResp/01"/>
<s:element name="gBTST">
<s:complexTyp e>
<s:sequence>
<s:element ref="ns:GSTBTRe q"/>
</s:sequence>
</s:complexType>
</s:element>
<s:element name= "gBTSTResp" >
<s:complexTyp e>
<s:sequence>
<s:element ref="ns1:GSTBTR esp"/>
</s:sequence>
</s:complexType>
</s:element>
</s:schema>

<s:schema targetNamespace ="http://abc.com/GBTST/GBTSTReq/01" xmlns:common="h ttp://abc.com/Common/01" xmlns:conv="htt p://www.openuri.org/2002/04/soap/conversation/" xmlns:cw="http://www.openuri.org/2002/04/wsdl/conversation/" xmlns:http="htt p://schemas.xmlsoap .org/wsdl/http/"
xmlns:req="http ://abc.com/GBTST/GBTSTReq/01" xmlns:s="http://www.w3.org/2001/XMLSchema" xmlns:soap="htt p://schemas.xmlsoap .org/wsdl/soap/" xmlns:soapenc=" http://schemas.xmlsoap .org/soap/encoding/" xmlns:xsd="http ://www.w3.org/2001/XMLSchema">
<s:import namespace="http ://abc.com/Common/01"/>
<s:simpleType name="CustomerN umber">
<s:restrictio n base="xsd:integ er"/>
</s:simpleType>
<s:simpleType name="Unit">
<s:restrictio n base="xsd:strin g">
<s:enumeratio n value="ABC"/>
</s:restriction>
</s:simpleType>
<s:element name="GSTBTReq" >
<s:complexTyp e>
<s:sequence>
<s:element name="CustomerN umber" nillable="false " type="req:Custo merNumber"/>
<s:element name="Unit" nillable="false " type="req:Opera tingUnit"/>
</s:sequence>
</s:complexType>
</s:element>
</s:schema>
Nov 14 '06 #1
1 3609
ronverdonk
4,258 Recognized Expert Specialist
Maybe you would get more attention if you didn't make a mess of the posted code. I surely do not feel tempted to read it.

Read the Posting Guidelines before you put anything in here. Take special notice of the part saying that you must enclose you code within code, php or html tags.!!

Ronald :cool:
Nov 14 '06 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

7
5322
by: Nathan Lamont | last post by:
I would like to make use of two separate PHP applications which happen to share some class names; trying to include both from one script results in the expected error, "cannot redefine class foo." or somesuch. Using a fully qualified URL instead of the local file path in the include() would work, except that the applications then do not have access to the users cookies -- the requests are coming from the server itself, not the user. ...
0
8486
by: Philipp Lenssen | last post by:
I'm getting the error message "Class 'SoapClient' not found" even though I tried to follow the steps described in the comments at <http://de2.php.net/manual/en/ref.soap.php>. All I'm trying to do is make a working PHP5 Google Web API request... anybody? -- Google Blogoscoped http://blog.outer-court.com
1
2725
by: John L. Clark | last post by:
I am curious as to the rationale, and effect, of having default namespaces not applying (directly) to attributes (see http://www.w3.org/TR/REC-xml-names/#defaulting). Given an attribute without a namespace prefix, what is its namespace, if default namespaces do not apply? Are (either of) prefixed or non-prefixed attributes correct? For example, are the following equivalent: <html:br class="foo"...
29
4246
by: Natan | last post by:
When you create and aspx page, this is generated by default: using System; using System.Collections; using System.Collections.Specialized; using System.Configuration; using System.Text; using System.Text.RegularExpressions; using System.Web; using System.Web.Caching;
1
6036
by: Yolande | last post by:
Hi there, I try to use MSSOAPLib.soapClient to get the XML data produced by our web services. I have a web method call ReportExec(strID, strRequest). It takes two string arguments and returns a Xml.XmlNode object. When I test the web services using IE, I receive the XML data I want. But when I use MSSOAPLib.soapClient in MS Access, I got an error of “Wrong number of arguments or invalid property assignment.” I don't think this was...
0
4758
by: Florian Laws | last post by:
Hello, to work around an interoperability problem with the PHP5 SOAP extension, I'd like to modify the generate XML SOAP request. (as described in http://www.schlossnagle.org/~george/blog/index.php?/archives/235-Salesforce.com-and-PHP.html ) To acheive this, I subclass SoapClient and overwrite the __doRequest() method. According to the PHP documentation and the article above, the
4
14227
by: brandonkirsch | last post by:
Hey guys, I recently lost hours to the PHP 5.2.1 SoapClient when trying to use a remote webservice. There are two methods I have to use, the first one worked like a charm and the second one has me fuming mad. The two methods are "GetSessionToken" which expects two strings, and "SetProjectData" which expects XML wrapped in a CDATA tag. My problem is that the XML I pass to SetProjectData is being escaped by the PHP SoapClient and I don't...
3
6399
by: Joshua Beall | last post by:
Hi All, I've got the following PHP code: $service = new SoapClient("http://www.webservicex.net/length.asmx? wsdl"); $result = $service->ChangeLengthUnit(10,"Inches","Centimeters"); var_dump($result);
0
5245
by: vendejp | last post by:
I intermittently get the following error when calling a soap method: "HTTP" - Error Fetching http headers. Its really hit or miss... sometimes it works sometimes not. The exception doesn't provide any more information, but I simply cannot identify why the request would consistently work sometimes, then consistently fail other times. The request fails fast, so it doesnt appear to be a socket timeout
0
9685
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, well explore What is ONU, What Is Router, ONU & Routers main usage, and What is the difference between ONU and Router. Lets take a closer look ! Part I. Meaning of...
0
10470
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10247
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10023
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9067
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development projectplanning, coding, testing, and deploymentwithout human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7561
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupr who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6803
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5459
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
3
2935
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.