473,790 Members | 2,421 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

multirefs returned by the server

I am writing a C# client (using .NET 1.1) to a web service built on Apache
Axis.

The server returns an array using multirefs but the C# client does not seem
to be able to recognize it.

I read in one of the articles that I should turn multirefs OFF for interop
with .NET and that there was some microsoft technote stating this.

Does the .NET framework 1.1 support multirefs sent by a service? If not,
then is there a technote that explains this?

Here's the SOAP response sent by the server:
<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelo pe 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">
<soapenv:Body >
<ns1:getMyTypes Response
soapenv:encodin gStyle="http://schemas.xmlsoap .org/soap/encoding/"
xmlns:ns1="http ://myserver/myservice.wsdl" >
<getMyTypesRetu rn href="#id0"/>
</ns1:getMyTypesR esponse>
<multiRef id="id0" soapenc:root="0 "
soapenv:encodin gStyle="http://schemas.xmlsoap .org/soap/encoding/"
xsi:type="ns2:M yTypes"
xmlns:soapenc=" http://schemas.xmlsoap .org/soap/encoding/"
xmlns:ns2="http ://myserver/myservice.wsdl" >
<typeA xsi:type="soape nc:Array" soapenc:arrayTy pe="ns2:MyType[1]">
<item href="#id1"/>
</typeA>
<typeB xsi:type="soape nc:Array" soapenc:arrayTy pe="ns2:MyType[1]">
<item href="#id2"/>
</typeB>
</multiRef>
<multiRef id="id1" soapenc:root="0 "
soapenv:encodin gStyle="http://schemas.xmlsoap .org/soap/encoding/"
xsi:type="ns3:M yType" xmlns:ns3="http ://myserver/myservice.wsdl"
xmlns:soapenc=" http://schemas.xmlsoap .org/soap/encoding/">TYPE_A</multiRef>
<multiRef id="id2" soapenc:root="0 "
soapenv:encodin gStyle="http://schemas.xmlsoap .org/soap/encoding/"
xsi:type="ns4:M yType" xmlns:ns4="http ://myserver/myservice.wsdl"
xmlns:soapenc=" http://schemas.xmlsoap .org/soap/encoding/">TYPE_B</multiRef>
</soapenv:Body>
</soapenv:Envelop e>
Thanks,
Hari

Nov 23 '05 #1
3 3622
Hi Hari,

We have reviewed this issue and are currently researching on it. We will
update you ASAP. Thanks for your patience!

Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."
Nov 23 '05 #2
Hi Hari,

Based on my research, there is no tech notes explicitly declare that .NET
webservcie do not support MultipRef element. The problem is that MultiRef
element is a output of the RPC/Encoded style SOAP message which is not
interop friendly. For interop between heterogenous system, the prefered
SOAP message style is document/literal:

http://msdn.microsoft.com/webservice...g/webserviceba
sics/default.aspx?pu ll=/library/en-us/dnwebsrv/html/rpc_literal.asp

document/literal style message can confirm that the actual SOAP message is
exactly what we defined through XSD schema and WSDL document while
RPC/Encoded can not because it use some platform/component specific rules
to encoding the runtime method call (which is not interop firendly ,though
it is sometimes more powerful )

Also ,here is a certain article also mentioend this:

http://www.developerfusion.co.uk/show/4694/3/

Thanks,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
--------------------
Thread-Topic: multirefs returned by the server
thread-index: AcXhQuJnIE9rZmF RQS+2toX04YYvzQ ==
X-WBNR-Posting-Host: 216.191.251.40
From: "=?Utf-8?B?SGFyaSBNZW5 vbg==?=" <ha*********@ne wsgroup.nospam>
Subject: multirefs returned by the server
Date: Fri, 4 Nov 2005 05:23:03 -0800
Lines: 50
Message-ID: <78************ *************** *******@microso ft.com>
MIME-Version: 1.0
Content-Type: text/plain;
charset="Utf-8"
Content-Transfer-Encoding: 7bit
X-Newsreader: Microsoft CDO for Windows 2000
Content-Class: urn:content-classes:message
Importance: normal
Priority: normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
Newsgroups: microsoft.publi c.dotnet.framew ork.webservices
NNTP-Posting-Host: TK2MSFTNGXA03.p hx.gbl 10.40.2.250
Path: TK2MSFTNGXA01.p hx.gbl!TK2MSFTN GXA03.phx.gbl
microsoft.publi c.dotnet.framew ork.webservices :8470
X-Tomcat-NG: microsoft.publi c.dotnet.framew ork.webservices

I am writing a C# client (using .NET 1.1) to a web service built on Apache
Axis.

The server returns an array using multirefs but the C# client does not seem
to be able to recognize it.

I read in one of the articles that I should turn multirefs OFF for interop
with .NET and that there was some microsoft technote stating this.

Does the .NET framework 1.1 support multirefs sent by a service? If not,
then is there a technote that explains this?

Here's the SOAP response sent by the server:
<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelo pe 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">
<soapenv:Body >
<ns1:getMyTypes Response
soapenv:encodin gStyle="http://schemas.xmlsoap .org/soap/encoding/"
xmlns:ns1="http ://myserver/myservice.wsdl" >
<getMyTypesRetu rn href="#id0"/>
</ns1:getMyTypesR esponse>
<multiRef id="id0" soapenc:root="0 "
soapenv:encodin gStyle="http://schemas.xmlsoap .org/soap/encoding/"
xsi:type="ns2:M yTypes"
xmlns:soapenc=" http://schemas.xmlsoap .org/soap/encoding/"
xmlns:ns2="http ://myserver/myservice.wsdl" >
<typeA xsi:type="soape nc:Array" soapenc:arrayTy pe="ns2:MyType[1]">
<item href="#id1"/>
</typeA>
<typeB xsi:type="soape nc:Array" soapenc:arrayTy pe="ns2:MyType[1]">
<item href="#id2"/>
</typeB>
</multiRef>
<multiRef id="id1" soapenc:root="0 "
soapenv:encodin gStyle="http://schemas.xmlsoap .org/soap/encoding/"
xsi:type="ns3:M yType" xmlns:ns3="http ://myserver/myservice.wsdl"
xmlns:soapenc=" http://schemas.xmlsoap .org/soap/encoding/">TYPE_A</multiRef>
<multiRef id="id2" soapenc:root="0 "
soapenv:encodin gStyle="http://schemas.xmlsoap .org/soap/encoding/"
xsi:type="ns4:M yType" xmlns:ns4="http ://myserver/myservice.wsdl"
xmlns:soapenc=" http://schemas.xmlsoap .org/soap/encoding/">TYPE_B</multiRef>
</soapenv:Body>
</soapenv:Envelop e>
Thanks,
Hari
Nov 23 '05 #3
Hi Hari,

How are you doing on this issue? Does the information in my last reply
helps a little? If there're anything else we can help, please feel free to
post here. Thanks,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
--------------------
X-Tomcat-ID: 180360861
References: <78************ *************** *******@microso ft.com>
MIME-Version: 1.0
Content-Type: multipart/alternative; boundary="----=_NextPart_0001 _83B459AE"
Content-Transfer-Encoding: 7bit
From: st*****@online. microsoft.com (Steven Cheng[MSFT])
Organization: Microsoft
Date: Mon, 07 Nov 2005 09:54:52 GMT
Subject: RE: multirefs returned by the server
X-Tomcat-NG: microsoft.publi c.dotnet.framew ork.webservices
Message-ID: <DD************ **@TK2MSFTNGXA0 1.phx.gbl>
Newsgroups: microsoft.publi c.dotnet.framew ork.webservices
Lines: 226
Path: TK2MSFTNGXA01.p hx.gbl
microsoft.publi c.dotnet.framew ork.webservices :8508
NNTP-Posting-Host: TOMCATIMPORT1 10.201.218.122

Hi Hari,

Based on my research, there is no tech notes explicitly declare that .NET
webservcie do not support MultipRef element. The problem is that MultiRef
element is a output of the RPC/Encoded style SOAP message which is not
interop friendly. For interop between heterogenous system, the prefered
SOAP message style is document/literal:

http://msdn.microsoft.com/webservice...g/webserviceba
sics/default.aspx?pu ll=/library/en-us/dnwebsrv/html/rpc_literal.asp

document/literal style message can confirm that the actual SOAP message is
exactly what we defined through XSD schema and WSDL document while
RPC/Encoded can not because it use some platform/component specific rules
to encoding the runtime method call (which is not interop firendly ,though
it is sometimes more powerful )

Also ,here is a certain article also mentioend this:

http://www.developerfusion.co.uk/show/4694/3/

Thanks,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
--------------------
Thread-Topic: multirefs returned by the server
thread-index: AcXhQuJnIE9rZmF RQS+2toX04YYvzQ ==
X-WBNR-Posting-Host: 216.191.251.40
From: "=?Utf-8?B?SGFyaSBNZW5 vbg==?=" <ha*********@ne wsgroup.nospam>
Subject: multirefs returned by the server
Date: Fri, 4 Nov 2005 05:23:03 -0800
Lines: 50
Message-ID: <78************ *************** *******@microso ft.com>
MIME-Version: 1.0
Content-Type: text/plain;
charset="Utf-8"
Content-Transfer-Encoding: 7bit
X-Newsreader: Microsoft CDO for Windows 2000
Content-Class: urn:content-classes:message
Importance: normal
Priority: normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
Newsgroups: microsoft.publi c.dotnet.framew ork.webservices
NNTP-Posting-Host: TK2MSFTNGXA03.p hx.gbl 10.40.2.250
Path: TK2MSFTNGXA01.p hx.gbl!TK2MSFTN GXA03.phx.gbl
microsoft.publi c.dotnet.framew ork.webservices :8470
X-Tomcat-NG: microsoft.publi c.dotnet.framew ork.webservices

I am writing a C# client (using .NET 1.1) to a web service built on Apache
Axis.

The server returns an array using multirefs but the C# client does not seem
to be able to recognize it.

I read in one of the articles that I should turn multirefs OFF for interop
with .NET and that there was some microsoft technote stating this.

Does the .NET framework 1.1 support multirefs sent by a service? If not,
then is there a technote that explains this?

Here's the SOAP response sent by the server:
<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelo pe 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">
<soapenv:Body >
<ns1:getMyTypes Response
soapenv:encodin gStyle="http://schemas.xmlsoap .org/soap/encoding/"
xmlns:ns1="http ://myserver/myservice.wsdl" >
<getMyTypesRetu rn href="#id0"/>
</ns1:getMyTypesR esponse>
<multiRef id="id0" soapenc:root="0 "
soapenv:encodin gStyle="http://schemas.xmlsoap .org/soap/encoding/"
xsi:type="ns2:M yTypes"
xmlns:soapenc=" http://schemas.xmlsoap .org/soap/encoding/"
xmlns:ns2="http ://myserver/myservice.wsdl" >
<typeA xsi:type="soape nc:Array" soapenc:arrayTy pe="ns2:MyType[1]">
<item href="#id1"/>
</typeA>
<typeB xsi:type="soape nc:Array" soapenc:arrayTy pe="ns2:MyType[1]">
<item href="#id2"/>
</typeB>
</multiRef>
<multiRef id="id1" soapenc:root="0 "
soapenv:encodin gStyle="http://schemas.xmlsoap .org/soap/encoding/"
xsi:type="ns3:M yType" xmlns:ns3="http ://myserver/myservice.wsdl"
xmlns:soapenc=" http://schemas.xmlsoap .org/soap/encoding/">TYPE_A</multiRef>
<multiRef id="id2" soapenc:root="0 "
soapenv:encodin gStyle="http://schemas.xmlsoap .org/soap/encoding/"
xsi:type="ns4:M yType" xmlns:ns4="http ://myserver/myservice.wsdl"
xmlns:soapenc=" http://schemas.xmlsoap .org/soap/encoding/">TYPE_B</multiRef>
</soapenv:Body>
</soapenv:Envelop e>
Thanks,
Hari


Nov 23 '05 #4

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

Similar topics

8
2410
by: Programatix | last post by:
Hi, I'm working on a project which includes XML WebServices and Windows Form application. The Windows Form application will call the XML WebServices to retrieve data from database. The data will be returned as DataSet. Now, here's the problem. On .NET Framework 1.1, if any rows in the dataset returned contain errors (marked by calling the SetColumnError() method or
4
14398
by: Chris Tremblay | last post by:
I am trying to figure out how to go about retrieving the number of results returned from my queries in SQL server from VB.NET without using a the Select Count(*) query. The method that I was using was the following: Take the query that I am executing, copy the query and turn it into a count query, run the count query, then execute the original query. The reason for this is so that I can implememt public paging on my website. The...
6
343
by: Jim S | last post by:
I have a .net framework 2.0 client (Pocket PC) and a .net 2.0 webservice that communicate on the same LAN. The Pocket PC has no problem consuming strings returned from the web service methoeds but I’m unable to receive and a custom object. The error occurs when the PocketPC app casts a returned object (WebServiceServer.objectA) from the webservice to pocketPC.ObjectA (results in InvalidCastExeption). ObjectA is a simple class and is...
0
2068
by: silviu | last post by:
Hello I'm trying to install Microsoft SQL 2005 Server Express Edition but I'm getting the following error: SQL Server Setup unexpectedly failed... Then it says something about a log file. Here's the contents of that log: Microsoft SQL Server 2005 Setup beginning at Thu Nov 22 22:30:08 2007 Process ID : 3856 e:\6f695192a2be55cedd30e3868397bfd2\setup.exe Version: 2005.90.1399.0 Running: LoadResourcesAction at: 2007/10/22 22:30:8...
0
1024
by: arial | last post by:
Hi all, I am getting following error message when I tried to add a user in my list. The way I have it designed it, I have sql database which connects to another sql database using a link server and .Net webform. I am using web form to entered the new user and it goes to the database. I have insert trigger on my first database and as soon as new entry happens it should fire insert trigger and add the data to the another database which is on...
3
480
by: David Gray | last post by:
Hello all, Having problems connecting to an Oracle 9i database from within SQL/Server 2000 using the Security/Linked Servers feature. Server1 (SQL/Server) ----------- Windows Server 2003, Standard edition MS SQL/Server 2000 Oracle 9i Client kit (OLEDB & ODBC) & Enterprise management tools
2
1630
by: woakesd | last post by:
I've a query which happily returns a full set of data when run in SQL Studio but when I do the same query using IIS with Classic ASP connected via ODBC's SQL Server driver (not the native one) numbers returned to the record set are filled with 0 and strings are empty exept for a few rows. This is happening in IIS 5.1 and IIS 6.0 when the database is on a seperate machine. With IIS 5.1 and SQL Server 2005 Developer Edition on the same...
6
4689
by: barmatt80 | last post by:
Ok, I do not know what I am doing wrong. I have linked servers setup from SQL server 2005 to db2 using odbc dsn. I open sql server management studio and try to call a stored procedure on db2 system. Linked server name: PADEV Database name: PADEV1 Database owner: PADEVM Stored procedure name: PAWHAT I type in for new query: EXEC PADEV.PADEV1.PADEVM.PAWHAT
0
3538
by: nidhisahu | last post by:
Hello All, i am open this URL( http://id.skootit.com/WorkspaceService/ListInvitations?actor=http://goku.id.skootit.com/) directly in browser with enter credential then its open and show xml data. but if i used this url in code means i send Requset and post data on server then i am getting Error(The remote server returned an error: (401) Unauthorized.) here i used same credentials. I send request by this code. HttpWebRequest...
0
10413
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
10145
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
9986
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
7530
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
6769
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
5422
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?
2
3707
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2909
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.