473,382 Members | 1,480 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

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:Envelope 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:getMyTypesResponse
soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:ns1="http://myserver/myservice.wsdl">
<getMyTypesReturn href="#id0"/>
</ns1:getMyTypesResponse>
<multiRef id="id0" soapenc:root="0"
soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
xsi:type="ns2:MyTypes"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:ns2="http://myserver/myservice.wsdl">
<typeA xsi:type="soapenc:Array" soapenc:arrayType="ns2:MyType[1]">
<item href="#id1"/>
</typeA>
<typeB xsi:type="soapenc:Array" soapenc:arrayType="ns2:MyType[1]">
<item href="#id2"/>
</typeB>
</multiRef>
<multiRef id="id1" soapenc:root="0"
soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
xsi:type="ns3:MyType" xmlns:ns3="http://myserver/myservice.wsdl"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">TYPE_A</multiRef>
<multiRef id="id2" soapenc:root="0"
soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
xsi:type="ns4:MyType" xmlns:ns4="http://myserver/myservice.wsdl"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">TYPE_B</multiRef>
</soapenv:Body>
</soapenv:Envelope>
Thanks,
Hari

Nov 23 '05 #1
3 3600
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?pull=/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: AcXhQuJnIE9rZmFRQS+2toX04YYvzQ==
X-WBNR-Posting-Host: 216.191.251.40
From: "=?Utf-8?B?SGFyaSBNZW5vbg==?=" <ha*********@newsgroup.nospam>
Subject: multirefs returned by the server
Date: Fri, 4 Nov 2005 05:23:03 -0800
Lines: 50
Message-ID: <78**********************************@microsoft.co m>
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.public.dotnet.framework.webservices
NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 10.40.2.250
Path: TK2MSFTNGXA01.phx.gbl!TK2MSFTNGXA03.phx.gbl
microsoft.public.dotnet.framework.webservices:8470
X-Tomcat-NG: microsoft.public.dotnet.framework.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:Envelope 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:getMyTypesResponse
soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:ns1="http://myserver/myservice.wsdl">
<getMyTypesReturn href="#id0"/>
</ns1:getMyTypesResponse>
<multiRef id="id0" soapenc:root="0"
soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
xsi:type="ns2:MyTypes"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:ns2="http://myserver/myservice.wsdl">
<typeA xsi:type="soapenc:Array" soapenc:arrayType="ns2:MyType[1]">
<item href="#id1"/>
</typeA>
<typeB xsi:type="soapenc:Array" soapenc:arrayType="ns2:MyType[1]">
<item href="#id2"/>
</typeB>
</multiRef>
<multiRef id="id1" soapenc:root="0"
soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
xsi:type="ns3:MyType" xmlns:ns3="http://myserver/myservice.wsdl"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">TYPE_A</multiRef>
<multiRef id="id2" soapenc:root="0"
soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
xsi:type="ns4:MyType" xmlns:ns4="http://myserver/myservice.wsdl"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">TYPE_B</multiRef>
</soapenv:Body>
</soapenv:Envelope>
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**********************************@microsoft.co m>
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.public.dotnet.framework.webservices
Message-ID: <DD**************@TK2MSFTNGXA01.phx.gbl>
Newsgroups: microsoft.public.dotnet.framework.webservices
Lines: 226
Path: TK2MSFTNGXA01.phx.gbl
microsoft.public.dotnet.framework.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?pull=/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: AcXhQuJnIE9rZmFRQS+2toX04YYvzQ==
X-WBNR-Posting-Host: 216.191.251.40
From: "=?Utf-8?B?SGFyaSBNZW5vbg==?=" <ha*********@newsgroup.nospam>
Subject: multirefs returned by the server
Date: Fri, 4 Nov 2005 05:23:03 -0800
Lines: 50
Message-ID: <78**********************************@microsoft.co m>
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.public.dotnet.framework.webservices
NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 10.40.2.250
Path: TK2MSFTNGXA01.phx.gbl!TK2MSFTNGXA03.phx.gbl
microsoft.public.dotnet.framework.webservices:8470
X-Tomcat-NG: microsoft.public.dotnet.framework.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:Envelope 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:getMyTypesResponse
soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:ns1="http://myserver/myservice.wsdl">
<getMyTypesReturn href="#id0"/>
</ns1:getMyTypesResponse>
<multiRef id="id0" soapenc:root="0"
soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
xsi:type="ns2:MyTypes"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:ns2="http://myserver/myservice.wsdl">
<typeA xsi:type="soapenc:Array" soapenc:arrayType="ns2:MyType[1]">
<item href="#id1"/>
</typeA>
<typeB xsi:type="soapenc:Array" soapenc:arrayType="ns2:MyType[1]">
<item href="#id2"/>
</typeB>
</multiRef>
<multiRef id="id1" soapenc:root="0"
soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
xsi:type="ns3:MyType" xmlns:ns3="http://myserver/myservice.wsdl"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">TYPE_A</multiRef>
<multiRef id="id2" soapenc:root="0"
soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
xsi:type="ns4:MyType" xmlns:ns4="http://myserver/myservice.wsdl"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">TYPE_B</multiRef>
</soapenv:Body>
</soapenv:Envelope>
Thanks,
Hari


Nov 23 '05 #4

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

Similar topics

8
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...
4
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...
6
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...
0
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...
0
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...
3
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,...
2
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)...
6
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...
0
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...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?

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.