473,789 Members | 2,683 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Problem with wsdl and soap - return null

2 New Member
I have a WSDL:
Expand|Select|Wrap|Line Numbers
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <!-- edited with XMLSpy v2008 sp1 (http://www.altova.com) by me -->
  3. <definitions xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:s="http://www.w3.org/2001/XMLSchema" xmlns:s0="http://***/directory/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:ns="http://***/directory/" targetNamespace="http://***/directory/">
  4.     <types>
  5.         <s:schema targetNamespace="http://***/directory/" elementFormDefault="qualified">
  6.             <s:element name="getSearchParts">
  7.                 <s:complexType/>
  8.             </s:element>
  9.             <s:element name="getSearchPartsResponse">
  10.                 <s:complexType>
  11.                     <s:sequence>
  12.                         <s:element ref="ns:SparePart" minOccurs="0" maxOccurs="unbounded"/>
  13.                     </s:sequence>
  14.                 </s:complexType>
  15.             </s:element>
  16.             <s:element name="string" type="s:string" nillable="true"/>
  17.             <s:element name="errorResponse">
  18.                 <s:complexType>
  19.                     <s:sequence>
  20.                         <s:element name="errorText" type="s:string" minOccurs="0"/>
  21.                         <s:element name="errorItem" type="s:string" minOccurs="0"/>
  22.                     </s:sequence>
  23.                 </s:complexType>
  24.             </s:element>
  25.             <s:element name="SparePart">
  26.                 <s:complexType>
  27.                     <s:attribute name="sparePartId" use="required">
  28.                         <s:simpleType>
  29.                             <s:restriction base="s:string">
  30.                                 <s:length value="11"/>
  31.                                 <s:whiteSpace value="collapse"/>
  32.                             </s:restriction>
  33.                         </s:simpleType>
  34.                     </s:attribute>
  35.                     <s:attribute name="sparePartDescription">
  36.                         <s:simpleType>
  37.                             <s:restriction base="s:string">
  38.                                 <s:length value="255"/>
  39.                                 <s:whiteSpace value="preserve"/>
  40.                             </s:restriction>
  41.                         </s:simpleType>
  42.                     </s:attribute>
  43.                     <s:attribute name="amountAvailable">
  44.                         <s:simpleType>
  45.                             <s:restriction base="s:integer">
  46.                                 <s:fractionDigits value="0"/>
  47.                             </s:restriction>
  48.                         </s:simpleType>
  49.                     </s:attribute>
  50.                     <s:attribute name="unitPriceExclVAT" type="s:double"/>
  51.                     <s:attribute name="unitPriceInclVAT" type="s:double"/>
  52.                     <s:attribute name="discountCode" type="s:byte"/>
  53.                 </s:complexType>
  54.             </s:element>
  55.             <s:element name="integer" type="s:integer"/>
  56.             <s:element name="SparePartSearchRequest">
  57.                 <s:complexType>
  58.                     <s:attribute name="partId" type="s:integer"/>
  59.                     <s:attribute name="listLimit" type="s:integer"/>
  60.                     <s:attribute name="pagingFirstPosId" type="s:integer"/>
  61.                     <s:attribute name="pagingOffset" type="s:integer"/>
  62.                 </s:complexType>
  63.             </s:element>
  64.         </s:schema>
  65.     </types>
  66.     <message name="getSearchPartsSoapIn">
  67.         <part name="partID" element="s0:SparePartSearchRequest"/>
  68.     </message>
  69.     <message name="getSearchPartsSoapOut">
  70.         <part name="sparePartsList" element="s0:getSearchPartsResponse"/>
  71.     </message>
  72.     <message name="errorSoapOut">
  73.         <part name="Error" type="s:string"/>
  74.     </message>
  75.     <portType name="SparePartsServiceSoap">
  76.         <operation name="getSearchParts">
  77.             <input message="s0:getSearchPartsSoapIn"/>
  78.             <output message="s0:getSearchPartsSoapOut"/>
  79.         </operation>
  80.     </portType>
  81.     <binding name="SparePartsSoap" type="ns:SparePartsServiceSoap">
  82.         <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
  83.         <operation name="getSearchParts">
  84.             <soap:operation soapAction="urn:#getSearchParts"/>
  85.             <input>
  86.                 <soap:body use="literal"/>
  87.             </input>
  88.             <output>
  89.                 <soap:body use="literal"/>
  90.             </output>
  91.         </operation>
  92.     </binding>
  93.     <service name="SparePartsService">
  94.         <documentation>Spare Parts Procesing</documentation>
  95.         <port name="SparePartsServiceSoap" binding="ns:SparePartsSoap">
  96.             <soap:address location="http://***/directory/wsdl.asmx"/>
  97.         </port>
  98.     </service>
  99. </definitions>
  100.  
When i try to get dome info from this wsdl with this script:

Expand|Select|Wrap|Line Numbers
  1. $client = new SoapClient("http://HereIsAddress.asmx?WSDL");
  2. $parametr = array(
  3.     'partId'           => '11537544788',  
  4.     'listLimit'        => 200,
  5.     'pagingFirstPosId' => 1,
  6.     'tpagingOffset'    => 1
  7.   ); 
  8.  
  9. $result = $client->__soapCall("getSearchParts", $parametr);
  10.  
  11. echo 'Results: ';?><BR><?
  12. var_dump($result);?><BR><BR><BR><?
  13.  
  14.  
  15. ?>
I get nothing. NULL
Someone can help me with this?
Jan 29 '08 #1
2 2411
blixit
2 New Member
SOLOVED :)
Delete this topic.
Jan 29 '08 #2
Markus
6,050 Recognized Expert Expert
SOLOVED :)
Delete this topic.
How was it solved?

Don't forget: this may be helpful to someone else!
Jan 29 '08 #3

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

Similar topics

0
1953
by: Dave | last post by:
Hi, If anyone could help with this, I would greatly appreciate it! I've created my own WSDL file and referenced an XSD file too. I've generated a service side interface using wsdl /server, and created an ASMX file from this. I've then set the Binding for the class and methods and set the Location to my WSDL file. If I put the wsdl:service element in the WSDL file that points to my endpoint, I can go to Add Web Reference and my methods...
4
6320
by: JLJ | last post by:
I have a very simple webservice written in Java/Axis. It takes in a complexType with 2 string elements, userid and password. The response is a complexType containing two complexTypes each having 2 strings <wsdl:portType name=SecurityLoginService"> <wsdl:operation name="login"> <wsdl:input message="tns:loginRequest" name="loginRequest"/> <wsdl:output message="tns:loginResponse" name="loginResponse"/> </wsdl:operation> </wsdl:portType>
2
6713
by: bebebutterfly | last post by:
How does .Net validates a soap request? I have a WSDL that goes something like <s:element name="CheckInStatus"> <s:complexType> <s:sequence> <s:element minOccurs="0" maxOccurs="1" name="abcID" type="s:string" /> <s:element minOccurs="1" maxOccurs="1" name="myStatus" type="s:int"
2
2759
by: yqlu | last post by:
I hava developed a client in C# that is connected to a 3-party XML Web Services developed in Java based on the AXIS 1.1. Most methods call are successful except for one method named "findObjects" and return a complex type "FieldSearchResult". The error message as following : "Cannot assign object of type System.String to an object of type System.String. There is an error in XML document (23, 97)." By the way,I hava written a client in Java...
1
3432
by: leslie_tighe | last post by:
Hello, I have webservice created with Axis 1.2.1 and that I am trying to consuming in .NET (VB) using the Microsoft provided tools. While I am able to consume methods on the service that return simple type, I cannot consume methods that return complex objects. I have tried experimenting, with this, but am at a bit of loss on where the problem lies. When I call the services from a browser, I do get back the response that contains valid...
0
2373
by: ryan | last post by:
I've been tasked with consuming a Perl web service that was written by a person in a different department of my company. The problem is it's the guy's first attempt at web services and he doesn't know how to create the WDSL. I created web service with Visual Studio that mimics his service and after some tweaking of the soapAction in the WSDL I'm able to call his service successfully. When I use SOAPScope to look the messages being sent and...
0
1944
by: helldiversafe-news | last post by:
Hi all, I will use a apache soap service with an .net c# client and have a problem with an complex array: <?xml version='1.0' encoding='UTF-8'?> <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <SOAP-ENV:Body>
1
2863
by: louis_la_brocante | last post by:
Dear all, I am having trouble generating a client proxy for a webservice whose methods return a "complex" type. The type is complex in that it is a class whose members are a mix of primitive types and of more elaborate classes implementing IXmlSerializable. The resulting WSDL file for the webservice has two separate schemas in its <types> sections, and the client proxy (generated with wsdl.exe) is missing the definitions of the...
0
3579
by: shaily | last post by:
hi I have a java web service called "Registration service" and C# client which is a consumer of that service java web service running under Tomcat has following interface API exposed public RegistrationResponse registerDevice(RegistrationRequest regReq) throws RemoteException
0
9666
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, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9511
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10408
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...
1
10139
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9983
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
5417
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...
0
5551
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4092
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3700
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.