473,386 Members | 1,602 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,386 software developers and data experts.

web invocation result is null for webservice emulation

I have a problem with the way that the generated proxy handles the
information when trying to return information from an emulated
webservice.

When trying to consume the emulated service, the method result is
always null, but for other (simple) types it works (ie with string).

The problem is that there is no way to debug the Invoke method in
Visual Studio and so I can't see what is happening. It should work!
Below is the returned xml info from the (emulated) webservice;
inspected with a proxy inspector:
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://
schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<getAllServiceConfigurationsResponse xmlns="http://nxp.com/
ACSTopi.Services.wsdl">
<getAllServiceConfigurationsResult>
<BOM_Infrastructure_ESB_ISOESBRuntimeConfigurati on
type="ACSTopi.API.Business.BOM.Infrastructure.ESB. ISOESBRuntimeConfiguration"
assembly="ACSTopi.API.Business.BOM" instance-
id="b39322e1-79e6-4b2d-82e1-77a798b18ae9" object-id="88">
<Serialized>
...xml info goes here
</Serialized>
</BOM_Infrastructure_ESB_ISOESBRuntimeConfiguration>
</getAllServiceConfigurationsResult>
</getAllServiceConfigurationsResponse>
</soap:Body>
</soap:Envelope>

Worth noting: The proxy knows the structure of the objects
(BOM_Infrastructure_ESB_ISOESBRuntimeConfiguration ) and generates the
correct proxy objects.

The overall communication runs, it's just the result returned is null.
Does anybody know what is happening, or can suggest a solution.

Christian
Aug 19 '08 #1
1 1292
A null return usually means a namespace mismatch. The server is sending data
in a different XML namespace than expected by the client.

--
John Saunders | MVP - Connected System Developer

<c.*******@googlemail.comwrote in message
news:ad**********************************@m73g2000 hsh.googlegroups.com...
I have a problem with the way that the generated proxy handles the
information when trying to return information from an emulated
webservice.

When trying to consume the emulated service, the method result is
always null, but for other (simple) types it works (ie with string).

The problem is that there is no way to debug the Invoke method in
Visual Studio and so I can't see what is happening. It should work!
Below is the returned xml info from the (emulated) webservice;
inspected with a proxy inspector:
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://
schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<getAllServiceConfigurationsResponse xmlns="http://nxp.com/
ACSTopi.Services.wsdl">
<getAllServiceConfigurationsResult>
<BOM_Infrastructure_ESB_ISOESBRuntimeConfigurati on
type="ACSTopi.API.Business.BOM.Infrastructure.ESB. ISOESBRuntimeConfiguration"
assembly="ACSTopi.API.Business.BOM" instance-
id="b39322e1-79e6-4b2d-82e1-77a798b18ae9" object-id="88">
<Serialized>
...xml info goes here
</Serialized>
</BOM_Infrastructure_ESB_ISOESBRuntimeConfiguration>
</getAllServiceConfigurationsResult>
</getAllServiceConfigurationsResponse>
</soap:Body>
</soap:Envelope>

Worth noting: The proxy knows the structure of the objects
(BOM_Infrastructure_ESB_ISOESBRuntimeConfiguration ) and generates the
correct proxy objects.

The overall communication runs, it's just the result returned is null.
Does anybody know what is happening, or can suggest a solution.

Christian
Aug 20 '08 #2

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

Similar topics

3
by: Robb Gilmore | last post by:
Hello, We have a C#.NET app which is calling a Java webservice. We use the wsdl file exportted from the java webservice to create our web-reference in Visual Studio. We are able to create the...
6
by: Sharon | last post by:
How to catch an asynchronous delegate invocation exception? The code: --------------------------------------- String message = “my message”; foreach( MyDelegate handler in...
3
by: N8 | last post by:
I am trying to get an exception to occur and consequently found that when adding a target method to a delegates invocation list, a copy of that object is added instead of a reference to the object....
1
by: alexttp | last post by:
Introduction: Assume having a MyApp.MyClass class bearing both data (say, DataSets) and functionality (proprietary methods). A WebService exposes this class via some GetMyClass WebMethod. A...
9
by: MSDNAndi | last post by:
Hi, I have a set of simple webservices calls that worked fine using .NET Framework 1.0. I am calling a Java/Apache based webservices, the calling side is not able to supply a proper WSDL. ...
15
by: 1.41421 | last post by:
I was wondering if it would be possible to find out, from within a function, the file and line number where that particular function call was invoked, bearing in mind that the function can...
0
by: Morgan Cheng | last post by:
I use VS auto generated code to invoke a internal network webservice. The auto-generated code use class SoapHttpClientProtocol to do Soap-on- http communication. It turns out that for single...
3
by: Giulio Petrucci | last post by:
Hi there, I'm quite a newbie in Web Service programming/using and I'm sorry if my question could sound quite "stupid". ;-) I'm working on an application which should request a service to a...
10
by: Toby Gallier | last post by:
Hello! I have a form that is calculating averages as follows: " =(NZ()+Nz()+Nz())/3 " However I need to now adjust for null values , so for example if value2 is null I would then need to...
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: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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,...
0
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...
0
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...

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.