473,569 Members | 2,845 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Axis2

1 New Member
Hi Everybody!

I´m trying to use a webservice made with axis2 from VB6. I have severals methods in the service. One of them doesn´t recive parameters when I invoke it and the result of the calling is ok, but when I invoke a method with one parameter I recive the following error: "Unexpected Subelement". I´m using Microsoft SOAP Toolkit 3.0 for calling the service.

This is the code that I use:
Expand|Select|Wrap|Line Numbers
  1. Dim clnt As New SoapClient30
  2. Dim objResultNodes
  3. Dim listaCapabilities
  4.  
  5.  
  6. On Error GoTo Mensaje
  7.  
  8. Screen.MousePointer = vbHourglass
  9.  
  10. DoEvents
  11.  
  12. 'Inciar Servicio Web
  13. clnt.ClientProperty("ServerHTTPRequest") = True
  14.  
  15. clnt.MSSoapInit "*****/SourcingServices?wsdl"
  16.  
  17. If Err <> 0 Then
  18.     MsgBox ("Respuesta erronea del Servicio Web. Verificar el Servicio URL" & vbLf & vbLf & "URGENTE !!! LLAMAR AL TEAM MANAGER:  Pope-Iban-Ibai" & vbLf & vbLf & Error)
  19.     Screen.MousePointer = vbDefault
  20.     Exit Sub
  21. End If
  22.  
  23. Lista.Clear
  24.  
  25. 'Invoke the Web service method
  26. 'It returns a DataSet (two nodes list; one containing schema
  27. ' and other containing actual results)
  28. 'Set objResultNodes = clnt.leerOfak(auxOF)
  29. Dim prov As String
  30. prov = InputBox("Introduzca el proveedor", "Proveedor")
  31.  
  32. listaCapabilities = clnt.getCapabilityListFromCompany(prov)
  33.  
  34. For i = 0 To UBound(listaCapabilities)
  35.     Lista.AddItem (listaCapabilities(i))
  36. Next
  37.  
  38. Salir:
  39. '
  40. ''Respuesta LeerOfak
  41. 'auxCLIENTE = clnt.leerOfak(auxOF).Item(5).Text
  42.  
  43. Screen.MousePointer = vbDefault
  44.  
  45. Set clnt = Nothing
  46.  
  47. Exit Sub
  48.  
  49. Mensaje:
  50.     MsgBox Err.Description, vbCritical, "Error Numero " & Err.Number
  51.  
  52.     Resume Salir
And this is the WSDL File:
- <wsdl:definitio ns xmlns:http="htt p://schemas.xmlsoap .org/wsdl/http/" xmlns:mime="htt p://schemas.xmlsoap .org/wsdl/mime/" xmlns:soap12="h ttp://schemas.xmlsoap .org/wsdl/soap12/" xmlns:wsaw="htt p://www.w3.org/2006/05/addressing/wsdl" xmlns:xsd="http ://ptk.ws.batz.com/xsd" xmlns:ns="http://ptk.ws.batz.com " xmlns:soap="htt p://schemas.xmlsoap .org/wsdl/soap/" xmlns:wsdl="htt p://schemas.xmlsoap .org/wsdl/" targetNamespace ="http://ptk.ws.batz.com ">
<wsdl:documenta tion>SourcingSe rvices</wsdl:documentat ion>
- <wsdl:types>
- <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" attributeFormDe fault="qualifie d" elementFormDefa ult="qualified" targetNamespace ="http://ptk.ws.batz.com/xsd">
- <xs:element name="getCapabi lityList">
- <xs:complexType >
- <xs:sequence>
<xs:element name="porRellen ar" nillable="true" type="xs:string " />
</xs:sequence>
</xs:complexType>
</xs:element>
- <xs:element name="getCapabi lityListRespons e">
- <xs:complexType >
- <xs:sequence>
<xs:element maxOccurs="unbo unded" name="return" nillable="true" type="xs:string " />
</xs:sequence>
</xs:complexType>
</xs:element>
- <xs:element name="getCapabi lityListFromCom pany">
- <xs:complexType >
- <xs:sequence>
<xs:element name="companyNa me" nillable="true" type="xs:string " />
</xs:sequence>
</xs:complexType>
</xs:element>
- <xs:element name="getCapabi lityListFromCom panyResponse">
- <xs:complexType >
- <xs:sequence>
<xs:element maxOccurs="unbo unded" name="return" nillable="true" type="xs:string " />
</xs:sequence>
</xs:complexType>
</xs:element>
- <xs:element name="getCompan yList">
- <xs:complexType >
- <xs:sequence>
<xs:element name="porRellen ar" nillable="true" type="xs:string " />
</xs:sequence>
</xs:complexType>
</xs:element>
- <xs:element name="getCompan yListResponse">
- <xs:complexType >
- <xs:sequence>
<xs:element maxOccurs="unbo unded" name="return" nillable="true" type="xs:string " />
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>
</wsdl:types>
- <wsdl:message name="getCapabi lityListMessage ">
<wsdl:part name="part1" element="xsd:ge tCapabilityList " />
</wsdl:message>
- <wsdl:message name="getCapabi lityListRespons eMessage">
<wsdl:part name="part1" element="xsd:ge tCapabilityList Response" />
</wsdl:message>
- <wsdl:message name="getCapabi lityListFromCom panyMessage">
<wsdl:part name="part1" element="xsd:ge tCapabilityList FromCompany" />
</wsdl:message>
- <wsdl:message name="getCapabi lityListFromCom panyResponseMes sage">
<wsdl:part name="part1" element="xsd:ge tCapabilityList FromCompanyResp onse" />
</wsdl:message>
- <wsdl:message name="getCompan yListMessage">
<wsdl:part name="part1" element="xsd:ge tCompanyList" />
</wsdl:message>
- <wsdl:message name="getCompan yListResponseMe ssage">
<wsdl:part name="part1" element="xsd:ge tCompanyListRes ponse" />
</wsdl:message>
- <wsdl:portTyp e name="SourcingS ervicesPortType ">
- <wsdl:operati on name="getCapabi lityList">
<wsdl:input message="ns:get CapabilityListM essage" wsaw:Action="ur n:getCapability List" />
<wsdl:output message="ns:get CapabilityListR esponseMessage" wsaw:Action="ht tp://ptk.ws.batz.com/SourcingService sPortType/getCapabilityLi stResponse" />
</wsdl:operation>
- <wsdl:operati on name="getCapabi lityListFromCom pany">
<wsdl:input message="ns:get CapabilityListF romCompanyMessa ge" wsaw:Action="ur n:getCapability ListFromCompany " />
<wsdl:output message="ns:get CapabilityListF romCompanyRespo nseMessage" wsaw:Action="ht tp://ptk.ws.batz.com/SourcingService sPortType/getCapabilityLi stFromCompanyRe sponse" />
</wsdl:operation>
- <wsdl:operati on name="getCompan yList">
<wsdl:input message="ns:get CompanyListMess age" wsaw:Action="ur n:getCompanyLis t" />
<wsdl:output message="ns:get CompanyListResp onseMessage" wsaw:Action="ht tp://ptk.ws.batz.com/SourcingService sPortType/getCompanyListR esponse" />
</wsdl:operation>
</wsdl:portType>
- <wsdl:binding name="SourcingS ervicesSOAP11Bi nding" type="ns:Sourci ngServicesPortT ype">
<soap:binding transport="http ://schemas.xmlsoap .org/soap/http" style="document " />
- <wsdl:operati on name="getCapabi lityList">
<soap:operati on soapAction="urn :getCapabilityL ist" style="document " />
- <wsdl:input>
<soap:body use="literal" />
</wsdl:input>
- <wsdl:output>
<soap:body use="literal" />
</wsdl:output>
</wsdl:operation>
- <wsdl:operati on name="getCapabi lityListFromCom pany">
<soap:operati on soapAction="urn :getCapabilityL istFromCompany" style="document " />
- <wsdl:input>
<soap:body use="literal" />
</wsdl:input>
- <wsdl:output>
<soap:body use="literal" />
</wsdl:output>
</wsdl:operation>
- <wsdl:operati on name="getCompan yList">
<soap:operati on soapAction="urn :getCompanyList " style="document " />
- <wsdl:input>
<soap:body use="literal" />
</wsdl:input>
- <wsdl:output>
<soap:body use="literal" />
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
- <wsdl:binding name="SourcingS ervicesSOAP12Bi nding" type="ns:Sourci ngServicesPortT ype">
<soap12:bindi ng transport="http ://schemas.xmlsoap .org/soap/http" style="document " />
- <wsdl:operati on name="getCapabi lityList">
<soap12:operati on soapAction="urn :getCapabilityL ist" style="document " />
- <wsdl:input>
<soap12:body use="literal" />
</wsdl:input>
- <wsdl:output>
<soap12:body use="literal" />
</wsdl:output>
</wsdl:operation>
- <wsdl:operati on name="getCapabi lityListFromCom pany">
<soap12:operati on soapAction="urn :getCapabilityL istFromCompany" style="document " />
- <wsdl:input>
<soap12:body use="literal" />
</wsdl:input>
- <wsdl:output>
<soap12:body use="literal" />
</wsdl:output>
</wsdl:operation>
- <wsdl:operati on name="getCompan yList">
<soap12:operati on soapAction="urn :getCompanyList " style="document " />
- <wsdl:input>
<soap12:body use="literal" />
</wsdl:input>
- <wsdl:output>
<soap12:body use="literal" />
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
- <wsdl:binding name="SourcingS ervicesHttpBind ing" type="ns:Sourci ngServicesPortT ype">
<http:binding verb="POST" />
- <wsdl:operati on name="getCapabi lityList">
<http:operati on location="getCa pabilityList" />
- <wsdl:input>
<mime:content type="text/xml" />
</wsdl:input>
- <wsdl:output>
<mime:content type="text/xml" />
</wsdl:output>
</wsdl:operation>
- <wsdl:operati on name="getCapabi lityListFromCom pany">
<http:operati on location="getCa pabilityListFro mCompany" />
- <wsdl:input>
<mime:content type="text/xml" />
</wsdl:input>
- <wsdl:output>
<mime:content type="text/xml" />
</wsdl:output>
</wsdl:operation>
- <wsdl:operati on name="getCompan yList">
<http:operati on location="getCo mpanyList" />
- <wsdl:input>
<mime:content type="text/xml" />
</wsdl:input>
- <wsdl:output>
<mime:content type="text/xml" />
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
- <wsdl:service name="SourcingS ervices">
- <wsdl:port name="SourcingS ervicesSOAP11po rt_http" binding="ns:Sou rcingServicesSO AP11Binding">
<soap:address location="http://192.168.90.227: 7001/ematrix/services/SourcingService s" />
</wsdl:port>
- <wsdl:port name="SourcingS ervicesSOAP12po rt_http" binding="ns:Sou rcingServicesSO AP12Binding">
<soap12:addre ss location="http://192.168.90.227: 7001/ematrix/services/SourcingService s" />
</wsdl:port>
- <wsdl:port name="SourcingS ervicesHttpport " binding="ns:Sou rcingServicesHt tpBinding">
<http:address location="http://192.168.90.227: 7001/ematrix/services/SourcingService s" />
</wsdl:port>
</wsdl:service>
</wsdl:definition s>

Any Idea?
Thanks in Advance
Jun 18 '07 #1
1 2242
skycs86
1 New Member
you have solve the prob? I have the same error too...thanks alot
Jul 5 '07 #2

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

Similar topics

2
5577
by: yewen | last post by:
My C# client (.dotNet 2.0 and WSE 3.0) generated the following SOAP message. <?xml version='1.0' encoding='utf-8'?> <soap:Envelope xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing"...
4
2039
by: Kevin Burton | last post by:
I found an article on calling a .NET web service from Java but it seemed to rely on GLUE and I was unable to find out how to download that software. There seems to be alot written on the Sun site, and I have downloaded the SDK and the web services SDK but I am not sure where to proceed from there. Basically I want to show how to do these...
1
12265
by: Florian Grousset | last post by:
Hi, I'm trying to code a simple C# SOAP client wich query an Axis2 Java SOAP Server. Server side code has been generated from a WSDL file. SOAP requests and responses must both contain a simple String array (not very diffucult I think !). What I've done : 1. WSDL file writing (see at the bottom of this post)
1
2410
by: zaheermabbas | last post by:
Hello All, I have been following the release documentation of axis, i wanted the axis2.war by building the sources, i have downloaded the source, and as it is specified in the doc to build the sources through maven. I am running on Maven2.0.4 but my Build process is failing because of the following reason,...
2
2957
by: Paul BE | last post by:
Hi, Can someone point me to a C# sample which calls an Axis2 XML Web Service? Thanks !
0
1350
by: | last post by:
I used to resolve the issue between .NET and Axis. I am using Complex Types. I can receive an object, as a param, from the client; however, the return object is not document/literal as the expected. My question is, can I specify and force the return as doc/lit rather than rpc/enc? I am using VB.NET. VS 2003. Client is using Axis2 v1.1 ...
1
2285
by: dwilcoxen | last post by:
I am looking for an example of how to connect from a .Net Windows client to an Axis (Java) web service, and upload a binary file to it using SOAP with attachments, or MTOM, or whatever works. If anyone's done this or found a good reference please point me the right way. Thanks.
0
1504
by: Michael Janulaitis | last post by:
I created a simple hello world web service that works great with a .Net client, however; I am not able to access the service from a Java Axis2 client. I get the following error: The input stream for an incoming message is null
1
3450
by: rgoren | last post by:
Hi, I set up an Axis POJO service and perl cient using SOAP::Lite. I am able to receive all simple types of return values (String, int, etc.) and also arrays (String in the POJO service). The trouble begins when I try to pass a perl array from the client to the server. I am not able to receieve it as String , only as parameters to a method,...
0
7695
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...
0
7612
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...
0
7922
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. ...
0
8119
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...
1
7668
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...
0
7964
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...
1
5509
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...
0
3637
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
936
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...

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.