473,897 Members | 3,322 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Error consuming a web service in axis

I've writtin a very simple web service in axis which returns an array of
classes.

I consume it in a .net app. When receiving the response, my .net app
generates an error "Cannot assign object of type System.Object[] to an
object of type PersonWS.WorkGr oupData[].".

I've included the wsdl of the consumed axis web service, the
request/responses of the web service by the .net app and the exception and
stack trace. Hoping someone can tell me what I'm doing wrong here.

**** Class I'm trying to serialize:
package ca.comp.openvie w;

public class WorkGroupData implements java.io.Seriali zable
{
static final long serialVersionUI D = 1;

public String Name;
public String SearchCode;

public WorkGroupData()
{

}

public WorkGroupData(S tring strName, String strSearchCode)
{
Name = strName;
SearchCode = strSearchCode;
}

}

**** WSDL:
<?xml version="1.0" encoding="utf-8"?>
<wsdl:definitio ns xmlns:soapenc=" http://schemas.xmlsoap .org/soap/encoding/"
xmlns:apachesoa p="http://xml.apache.org/xml-soap"
xmlns:tns1="htt p://openview.comp.c a"
xmlns:wsdlsoap= "http://schemas.xmlsoap .org/wsdl/soap/"
xmlns:xsd="http ://www.w3.org/2001/XMLSchema"
xmlns:impl="htt p://dc1serv306:8080/axis/PersonWS.jws"
xmlns:intf="htt p://dc1serv306:8080/axis/PersonWS.jws"
targetNamespace ="http://dc1serv306:8080/axis/PersonWS.jws"
xmlns:wsdl="htt p://schemas.xmlsoap .org/wsdl/">
<wsdl:types>
<xsd:schema xmlns="http://www.w3.org/2001/XMLSchema"
targetNamespace ="http://openview.comp.c a">
<xsd:import namespace="http ://dc1serv306:8080/axis/PersonWS.jws" />
<xsd:import namespace="http ://schemas.xmlsoap .org/soap/encoding/" />
<xsd:lexType name="WorkGroup Data">
<xsd:sequence >
<xsd:element name="Name" nillable="true" type="xsd:strin g" />
<xsd:element name="SearchCod e" nillable="true" type="xsd:strin g"
/>
</xsd:sequence>
</xsd:lexType>
</xsd:schema>
<xsd:schema xmlns="http://www.w3.org/2001/XMLSchema"
targetNamespace ="http://dc1serv306:8080/axis/PersonWS.jws">
<xsd:import namespace="http ://openview.comp.c a" />
<xsd:import namespace="http ://schemas.xmlsoap .org/soap/encoding/" />
<xsd:lexType name="ArrayOf_t ns1_WorkGroupDa ta">
<xsd:lexConte nt mixed="false">
<xsd:restrictio n base="soapenc:A rray">
<xsd:attribut e wsdl:arrayType= "tns1:WorkGroup Data[]"
ref="soapenc:ar rayType" />
</xsd:restriction >
</xsd:lexContent>
</xsd:lexType>
</xsd:schema>
</wsdl:types>
<wsdl:message name="ListWorkG roupsRequest">
<wsdl:part name="strPerson " type="xsd:strin g" />
</wsdl:message>
<wsdl:message name="ListWorkG roupsResponse">
<wsdl:part name="ListWorkG roupsReturn"
type="intf:Arra yOf_tns1_WorkGr oupData" />
</wsdl:message>
<wsdl:portTyp e name="PersonWS" >
<wsdl:operati on name="ListWorkG roups" parameterOrder= "strPerson" >
<wsdl:input name="ListWorkG roupsRequest"
message="intf:L istWorkGroupsRe quest" />
<wsdl:output name="ListWorkG roupsResponse"
message="intf:L istWorkGroupsRe sponse" />
</wsdl:operation>
</wsdl:portType>
<wsdl:binding name="PersonWSS oapBinding" type="intf:Pers onWS">
<wsdlsoap:bindi ng transport="http ://schemas.xmlsoap .org/soap/http"
style="rpc" />
<wsdl:operati on name="ListWorkG roups">
<wsdlsoap:opera tion soapAction="" />
<wsdl:input name="ListWorkG roupsRequest">
<wsdlsoap:bod y use="encoded" namespace="http ://DefaultNamespac e"
encodingStyle=" http://schemas.xmlsoap .org/soap/encoding/" />
</wsdl:input>
<wsdl:output name="ListWorkG roupsResponse">
<wsdlsoap:bod y use="encoded"
namespace="http ://dc1serv306:8080/axis/PersonWS.jws"
encodingStyle=" http://schemas.xmlsoap .org/soap/encoding/" />
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
<wsdl:service name="PersonWSS ervice">
<wsdl:port name="PersonWS" binding="intf:P ersonWSSoapBind ing">
<wsdlsoap:addre ss location="http://dc1serv306:8080/axis/PersonWS.jws"
/>
</wsdl:port>
</wsdl:service>
</wsdl:definition s>

**** Web service request:
POST /axis/PersonWS.jws HTTP/1.1
User-Agent: Mozilla/4.0 (atible; MSIE 6.0; MS Web Services Client Protocol
2.0.50727.42)
VsDebuggerCausa lityData:
uIDPo0CmVGk8IFR KtnoM+dd/g1UAAAAABhYLv0z ewUCAHJEZp0AP92 +xiiG8VKREqmQww AAIXQ0ACAAA
Content-Type: text/xml; charset=utf-8
SOAPAction: ""
Host: localhost:8080
Content-Length: 613
Expect: 100-continue

<?xml version="1.0" encoding="utf-8"?><soap:Envel ope
xmlns:soap="htt p://schemas.xmlsoap .org/soap/envelope/"
xmlns:soapenc=" http://schemas.xmlsoap .org/soap/encoding/"
xmlns:tns="http ://dc1serv306:8080/axis/PersonWS.jws"
xmlns:types="ht tp://dc1serv306:8080/axis/PersonWS.jws/encodedTypes"
xmlns:xsi="http ://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http ://www.w3.org/2001/XMLSchema"><soa p:Body
soap:encodingSt yle="http://schemas.xmlsoap .org/soap/encoding/"><q1:ListWorkG roups
xmlns:q1="http://DefaultNamespac e"><strPerso n
xsi:type="xsd:s tring">chaj17</strPerson></q1:ListWorkGrou ps></soap:Body></soap:Envelope>
**** Web service response:
HTTP/1.1 100 Continue

HTTP/1.1 200 OK
Set-Cookie: JSESSIONID=EA7F 4F1C1E1390AA029 4E6B087F5D3EF; Path=/axis
Content-Type: text/xml;charset=utf-8
Transfer-Encoding: chunked
Date: Mon, 12 Mar 2007 20:24:28 GMT
Server: Apache-Coyote/1.1

231
<?xml version="1.0" encoding="utf-8"?><soapenv:En velope
xmlns:soapenv=" http://schemas.xmlsoap .org/soap/envelope/"
xmlns:xsd="http ://www.w3.org/2001/XMLSchema"
xmlns:xsi="http ://www.w3.org/2001/XMLSchema-instance"><soap env:Body><ns1:L istWorkGroupsRe sponse
soapenv:encodin gStyle="http://schemas.xmlsoap .org/soap/encoding/"
xmlns:ns1="http ://DefaultNamespac e"><ListWorkGro upsReturn
soapenc:arrayTy pe="xsd:anyTyp e[0]" xsi:type="soape nc:Array"
xmlns:soapenc=" http://schemas.xmlsoap .org/soap/encoding/"/></ns1:ListWorkGro upsResponse></soapenv:Body></soapenv:Envelop e>
0
**** .Net Exception
Exception information:
Type : InvalidOperatio nException
Source : System.Xml
Link :
Message: There is an error in XML document (1, 501).

Trace :
at System.Xml.Seri alization.XmlSe rializer.Deseri alize(XmlReader
xmlReader, String encodingStyle, XmlDeserializat ionEvents events)
at System.Xml.Seri alization.XmlSe rializer.Deseri alize(XmlReader
xmlReader, String encodingStyle)
at
System.Web.Serv ices.Protocols. SoapHttpClientP rotocol.ReadRes ponse(SoapClien tMessage
message, WebResponse response, Stream responseStream, Boolean asyncCall)
at System.Web.Serv ices.Protocols. SoapHttpClientP rotocol.Invoke( String
methodName, Object[] parameters)
at PersonWS.Person WSService.ListW orkGroups(Strin g strPerson) in
c:\WINDOWS\Micr osoft.NET\Frame work\v2.0.50727 \Temporary ASP.NET
Files\quickserv icecall\821bd8e c\e1741ba7\App_ WebReferences.s _47-nlz.0.cs:line
48
at _Default.ListWo rkGroups(String strMnemonic) in
e:\Develop\2.0\ Projects\Servic e Desk\Quick Service Call\Web
Applications\Qu ickServiceCall\ Default.aspx.cs :line 30
at _Default.Page_L oad(Object sender, EventArgs e) in
e:\Develop\2.0\ Projects\Servic e Desk\Quick Service Call\Web
Applications\Qu ickServiceCall\ Default.aspx.cs :line 45
at System.Web.Util .CalliHelper.Ev entArgFunctionC aller(IntPtr fp, Object
o, Object t, EventArgs e)
at System.Web.Util .CalliEventHand lerDelegateProx y.Callback(Obje ct sender,
EventArgs e)
at System.Web.UI.C ontrol.OnLoad(E ventArgs e)
at System.Web.UI.C ontrol.LoadRecu rsive()
at System.Web.UI.P age.ProcessRequ estMain(Boolean
includeStagesBe foreAsyncPoint, Boolean includeStagesAf terAsyncPoint)

Inner exception (1):
Exception information:
Type : InvalidCastExce ption
Source : xnnfxwfg
Link :
Message: Cannot assign object of type System.Object[] to an object of type
PersonWS.WorkGr oupData[].

Trace :
at
Microsoft.Xml.S erialization.Ge neratedAssembly .XmlSerializati onReaderPersonW SService.Read3_ ListWorkGroupsR esponse()
at
Microsoft.Xml.S erialization.Ge neratedAssembly .ArrayOfObjectS erializer1.Dese rialize(XmlSeri alizationReader
reader)
at System.Xml.Seri alization.XmlSe rializer.Deseri alize(XmlReader
xmlReader, String encodingStyle, XmlDeserializat ionEvents events)


Mar 12 '07 #1
3 6101
"Jeremy Chapman" <no****@please. comwrote in message
news:ul******** ******@TK2MSFTN GP04.phx.gbl...
I've writtin a very simple web service in axis which returns an array of
classes.

I consume it in a .net app. When receiving the response, my .net app
generates an error "Cannot assign object of type System.Object[] to an
object of type PersonWS.WorkGr oupData[].".

I've included the wsdl of the consumed axis web service, the
request/responses of the web service by the .net app and the exception and
stack trace. Hoping someone can tell me what I'm doing wrong here.
You should try a few things. First, please enclose the .NET proxy code that
is causing the error.

Second, try consuming an array of int to see if the problem is "array" or
"of class".

John
Mar 12 '07 #2
I added a method that returns an array of int and I can call that method
fine from my .net app.

As for the proxy code, this is an asp.net 2.0 app I'm consuming from, so
most proxy code is done somehow behind the scenes which I can't seem to get
to decided to consume it from a .net windows app, which generates the same
error, and does let me see the proxy code, so I included that below.
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:2.0.507 27.42
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------

//
// This source code was auto-generated by Microsoft.VSDes igner, Version
2.0.50727.42.
//
#pragma warning disable 1591

namespace WindowsApplicat ion1.PersonWS {
using System.Diagnost ics;
using System.Web.Serv ices;
using System.Componen tModel;
using System.Web.Serv ices.Protocols;
using System;
using System.Xml.Seri alization;
/// <remarks/>
[System.CodeDom. Compiler.Genera tedCodeAttribut e("System.Web.S ervices",
"2.0.50727. 42")]
[System.Diagnost ics.DebuggerSte pThroughAttribu te()]
[System.Componen tModel.Designer CategoryAttribu te("code")]
[System.Web.Serv ices.WebService BindingAttribut e(Name="PersonW SSoapBinding",
Namespace="http ://dc1serv306:8080/axis/PersonWS.jws")]
[System.Xml.Seri alization.SoapI ncludeAttribute (typeof(WorkGro upData))]
public partial class PersonWSService :
System.Web.Serv ices.Protocols. SoapHttpClientP rotocol {

private System.Threadin g.SendOrPostCal lback TestOperationCo mpleted;

private System.Threadin g.SendOrPostCal lback
ListWorkGroupsO perationComplet ed;

private bool useDefaultCrede ntialsSetExplic itly;

/// <remarks/>
public PersonWSService () {
this.Url =
global::Windows Application1.Pr operties.Settin gs.Default.Wind owsApplication1 _PersonWS_Perso nWSService;
if ((this.IsLocalF ileSystemWebSer vice(this.Url) == true)) {
this.UseDefault Credentials = true;
this.useDefault CredentialsSetE xplicitly = false;
}
else {
this.useDefault CredentialsSetE xplicitly = true;
}
}

public new string Url {
get {
return base.Url;
}
set {
if ((((this.IsLoca lFileSystemWebS ervice(base.Url ) == true)
&& (this.useDefaul tCredentialsSet Explicitly ==
false))
&& (this.IsLocalFi leSystemWebServ ice(value) ==
false))) {
base.UseDefault Credentials = false;
}
base.Url = value;
}
}

public new bool UseDefaultCrede ntials {
get {
return base.UseDefault Credentials;
}
set {
base.UseDefault Credentials = value;
this.useDefault CredentialsSetE xplicitly = true;
}
}

/// <remarks/>
public event TestCompletedEv entHandler TestCompleted;

/// <remarks/>
public event ListWorkGroupsC ompletedEventHa ndler
ListWorkGroupsC ompleted;

/// <remarks/>
[System.Web.Serv ices.Protocols. SoapRpcMethodAt tribute("",
RequestNamespac e="http://DefaultNamespac e",
ResponseNamespa ce="http://dc1serv306:8080/axis/PersonWS.jws")]
[return:
System.Xml.Seri alization.SoapE lementAttribute ("TestReturn ")]
public int[] Test(string strPerson) {
object[] results = this.Invoke("Te st", new object[] {
strPerson});
return ((int[])(results[0]));
}

/// <remarks/>
public void TestAsync(strin g strPerson) {
this.TestAsync( strPerson, null);
}

/// <remarks/>
public void TestAsync(strin g strPerson, object userState) {
if ((this.TestOper ationCompleted == null)) {
this.TestOperat ionCompleted = new
System.Threadin g.SendOrPostCal lback(this.OnTe stOperationComp leted);
}
this.InvokeAsyn c("Test", new object[] {
strPerson}, this.TestOperat ionCompleted, userState);
}

private void OnTestOperation Completed(objec t arg) {
if ((this.TestComp leted != null)) {
System.Web.Serv ices.Protocols. InvokeCompleted EventArgs
invokeArgs =
((System.Web.Se rvices.Protocol s.InvokeComplet edEventArgs)(ar g));
this.TestComple ted(this, new
TestCompletedEv entArgs(invokeA rgs.Results, invokeArgs.Erro r,
invokeArgs.Canc elled, invokeArgs.User State));
}
}

/// <remarks/>
[System.Web.Serv ices.Protocols. SoapRpcMethodAt tribute("",
RequestNamespac e="http://DefaultNamespac e",
ResponseNamespa ce="http://dc1serv306:8080/axis/PersonWS.jws")]
[return:
System.Xml.Seri alization.SoapE lementAttribute ("ListWorkGroup sReturn")]
public WorkGroupData[] ListWorkGroups( string strPerson) {
object[] results = this.Invoke("Li stWorkGroups", new object[] {
strPerson});
return ((WorkGroupData[])(results[0]));
}

/// <remarks/>
public void ListWorkGroupsA sync(string strPerson) {
this.ListWorkGr oupsAsync(strPe rson, null);
}

/// <remarks/>
public void ListWorkGroupsA sync(string strPerson, object userState)
{
if ((this.ListWork GroupsOperation Completed == null)) {
this.ListWorkGr oupsOperationCo mpleted = new
System.Threadin g.SendOrPostCal lback(this.OnLi stWorkGroupsOpe rationCompleted );
}
this.InvokeAsyn c("ListWorkGrou ps", new object[] {
strPerson}, this.ListWorkGr oupsOperationCo mpleted,
userState);
}

private void OnListWorkGroup sOperationCompl eted(object arg) {
if ((this.ListWork GroupsCompleted != null)) {
System.Web.Serv ices.Protocols. InvokeCompleted EventArgs
invokeArgs =
((System.Web.Se rvices.Protocol s.InvokeComplet edEventArgs)(ar g));
this.ListWorkGr oupsCompleted(t his, new
ListWorkGroupsC ompletedEventAr gs(invokeArgs.R esults, invokeArgs.Erro r,
invokeArgs.Canc elled, invokeArgs.User State));
}
}

/// <remarks/>
public new void CancelAsync(obj ect userState) {
base.CancelAsyn c(userState);
}

private bool IsLocalFileSyst emWebService(st ring url) {
if (((url == null)
|| (url == string.Empty))) {
return false;
}
System.Uri wsUri = new System.Uri(url) ;
if (((wsUri.Port >= 1024)
&& (string.Compare (wsUri.Host, "localHost" ,
System.StringCo mparison.Ordina lIgnoreCase) == 0))) {
return true;
}
return false;
}
}

/// <remarks/>
[System.CodeDom. Compiler.Genera tedCodeAttribut e("System.Xml ",
"2.0.50727. 42")]
[System.Serializ ableAttribute()]
[System.Diagnost ics.DebuggerSte pThroughAttribu te()]
[System.Componen tModel.Designer CategoryAttribu te("code")]
[System.Xml.Seri alization.SoapT ypeAttribute(Na mespace="http://openview.comp.c a")]
public partial class WorkGroupData {

private string nameField;

private string searchCodeField ;

/// <remarks/>
[System.Xml.Seri alization.SoapE lementAttribute (IsNullable=tru e)]
public string Name {
get {
return this.nameField;
}
set {
this.nameField = value;
}
}

/// <remarks/>
[System.Xml.Seri alization.SoapE lementAttribute (IsNullable=tru e)]
public string SearchCode {
get {
return this.searchCode Field;
}
set {
this.searchCode Field = value;
}
}
}

/// <remarks/>
[System.CodeDom. Compiler.Genera tedCodeAttribut e("System.Web.S ervices",
"2.0.50727. 42")]
public delegate void TestCompletedEv entHandler(obje ct sender,
TestCompletedEv entArgs e);

/// <remarks/>
[System.CodeDom. Compiler.Genera tedCodeAttribut e("System.Web.S ervices",
"2.0.50727. 42")]
[System.Diagnost ics.DebuggerSte pThroughAttribu te()]
[System.Componen tModel.Designer CategoryAttribu te("code")]
public partial class TestCompletedEv entArgs :
System.Componen tModel.AsyncCom pletedEventArgs {

private object[] results;

internal TestCompletedEv entArgs(object[] results, System.Exceptio n
exception, bool cancelled, object userState) :
base(exception, cancelled, userState) {
this.results = results;
}

/// <remarks/>
public int[] Result {
get {
this.RaiseExcep tionIfNecessary ();
return ((int[])(this.results[0]));
}
}
}

/// <remarks/>
[System.CodeDom. Compiler.Genera tedCodeAttribut e("System.Web.S ervices",
"2.0.50727. 42")]
public delegate void ListWorkGroupsC ompletedEventHa ndler(object sender,
ListWorkGroupsC ompletedEventAr gs e);

/// <remarks/>
[System.CodeDom. Compiler.Genera tedCodeAttribut e("System.Web.S ervices",
"2.0.50727. 42")]
[System.Diagnost ics.DebuggerSte pThroughAttribu te()]
[System.Componen tModel.Designer CategoryAttribu te("code")]
public partial class ListWorkGroupsC ompletedEventAr gs :
System.Componen tModel.AsyncCom pletedEventArgs {

private object[] results;

internal ListWorkGroupsC ompletedEventAr gs(object[] results,
System.Exceptio n exception, bool cancelled, object userState) :
base(exception, cancelled, userState) {
this.results = results;
}

/// <remarks/>
public WorkGroupData[] Result {
get {
this.RaiseExcep tionIfNecessary ();
return ((WorkGroupData[])(this.results[0]));
}
}
}
}


"John Saunders" <john.saunder s at trizetto.comwro te in message
news:%2******** ********@TK2MSF TNGP06.phx.gbl. ..
"Jeremy Chapman" <no****@please. comwrote in message
news:ul******** ******@TK2MSFTN GP04.phx.gbl...
>I've writtin a very simple web service in axis which returns an array of
classes.

I consume it in a .net app. When receiving the response, my .net app
generates an error "Cannot assign object of type System.Object[] to an
object of type PersonWS.WorkGr oupData[].".

I've included the wsdl of the consumed axis web service, the
request/responses of the web service by the .net app and the exception
and stack trace. Hoping someone can tell me what I'm doing wrong here.

You should try a few things. First, please enclose the .NET proxy code
that is causing the error.

Second, try consuming an array of int to see if the problem is "array" or
"of class".

John


Mar 12 '07 #3
"Jeremy Chapman" <no****@please. comwrote in message
news:eh******** *****@TK2MSFTNG P04.phx.gbl...
>I added a method that returns an array of int and I can call that method
fine from my .net app.

As for the proxy code, this is an asp.net 2.0 app I'm consuming from, so
most proxy code is done somehow behind the scenes which I can't seem to
get to decided to consume it from a .net windows app, which generates the
same error, and does let me see the proxy code, so I included that below.
I didn't see anything blatantly wrong with the proxy code. Are you able to
find the line of code that the exception references?

John
Mar 13 '07 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
2830
by: Parag Mahajan | last post by:
Hi, I am developing a .Net client for Axis 1.1 web service written in java. The wsdl is generated using, java2WSDL with these switches:: -y WRAPPED -u LITERAL The login service which returns a session Id, is null, after deserializing, but when the XML passing over wire is seen, I can see the session Id being returned. But if in the client proxy code, if I changed the "Use" property from Literal to Encoded, .Net client is able to...
1
8136
by: Samudrala | last post by:
Hi, I have developed a web service developed in C#. the WSDL I gave is working fine with .net client. But when java client consumes it always raising exception. I have basic knowledge of java too but never worked on consuming/producing web services. can any body send sample source code for java client so that i can test my web service in java client. thanx in advance samudrala
0
1435
by: Jamie Phillips | last post by:
I'm sure this topic has been "around the block" a few times, but I have not been able to find ANY solutin that fits this particular problem. I have written a Java Axis web service that has a method which returns an object with the following characteristics: public class MMPerson { public string firstName; public string surname; public int age; public MMAddress address;
7
8902
by: Jamie Phillips | last post by:
I'm sure this topic has been "around the block" a few times, but I have not been able to find ANY solutin that fits this particular problem. I have written a Java Axis web service that has a method which returns an object with the following characteristics: public class MMPerson { public string firstName; public string surname; public int age; public MMAddress address;
1
4397
by: BestofAbhi | last post by:
I am consuming Java Web Services in .NET. The Java Web Services have been coded using Apache Axis. The binding style in the WSDL is 'Document' and type is 'Literal'. I have added these Java Web Services both as Web Reference and Reference (ie dll generated using wsdl.exe) in the Project in order to access them. I am able to get the output for web methods that return just a string. However when it comes to complex data like an object /...
0
1368
by: Abhijit Salvi | last post by:
I am consuming Java Web Services in .NET. The Java Web Services have been coded using Apache Axis. The binding style in the WSDL is 'Document' and type is 'Literal'. I have added these Java Web Services both as Web Reference and Reference (ie dll generated using wsdl.exe) in the Project in order to access them. I am able to get the output for web methods that return just a string. However when it comes to complex data like an object /...
1
3435
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...
2
3967
by: Philip Reimer | last post by:
Hello. We have here a Java web service that has been created using Apache Axis 1.4, using the document/literal wrapped style, and returns complex types in its methods. When consuming the web service with a C# client, all the fields in the returned objects are null. The SOAP message, however, contains all the expected data.
2
4807
by: arnomarga | last post by:
I am trying to consuming a .NET web service from a standard (classic) ASP, but having not so much luck as I dont have much experience about SOAP. Here is the webservice url: http://test.webservices.superbreak.com/SoapEndpoint.asmx I have been advised that i need to use this through MSSOAP Toolkit or through soap envelope. Could someone advise about some coding pattern to access this service?
0
11254
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
10853
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
10480
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...
1
8034
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
7187
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
5876
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
6076
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
4295
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3303
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.