473,756 Members | 2,117 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

.Net Client calling Apache WebService: Problem with NULL-Values

Hello,

i am trying to call a Apache WebService, which accepts NULL-Values for
some Parameters of a specific Web-Method. NULL-Values are mapped
within the soap-request by the .NET Client corresponding to the
following example-schema:

<ffin xsi:nil="true" />

the problem is that Apache expects the following request-schema:

<ffin xsi:type="xsd:s tring" xsi:nil="true"/>

otherwise Apache responds with an exception.

How can i get my .Net Web-Service Client to add the
missing "xsi:type" attribute

Thank you for your answers!
Nov 11 '05 #1
4 3395
Apache What?
Apache SOAP
Apache AXIS?
which version?

Can you show us the WSDL?
"Jens" <je************ **@eurobase.lu> wrote in message
news:7b******** *************** ***@posting.goo gle.com...
Hello,

i am trying to call a Apache WebService, which accepts NULL-Values for
some Parameters of a specific Web-Method. NULL-Values are mapped
within the soap-request by the .NET Client corresponding to the
following example-schema:

<ffin xsi:nil="true" />

the problem is that Apache expects the following request-schema:

<ffin xsi:type="xsd:s tring" xsi:nil="true"/>

otherwise Apache responds with an exception.

How can i get my .Net Web-Service Client to add the
missing "xsi:type" attribute

Thank you for your answers!

Nov 11 '05 #2
Here are the missing informations for the webservice server-side:

Apache SOAP 2.3.1
xercesImpl.jar 2.3.0 Apache XML Parser

and the wsdl file comes here:

<?xml version="1.0" encoding="UTF-8"?>
<definitions name="DispoList e"
targetNamespace ="http://ws.dispoliste.s koda.eis.de.wsd l/DispoListe/"
xmlns="http://schemas.xmlsoap .org/wsdl/"
xmlns:tns="http ://ws.dispoliste.s koda.eis.de.wsd l/DispoListe/"
xmlns:xsd="http ://www.w3.org/2001/XMLSchema"
xmlns:xsd1="htt p://ws.dispoliste.s koda.eis.de/"
xmlns:xsd2="htt p://state.ws.dispol iste.skoda.eis. de/">
<types>
<schema attributeFormDe fault="qualifie d"
elementFormDefa ult="unqualifie d"
targetNamespace ="http://ws.dispoliste.s koda.eis.de/"
xmlns="http://www.w3.org/2001/XMLSchema"
xmlns:soapenc=" http://schemas.xmlsoap .org/soap/encoding/"
xmlns:wsdl="htt p://schemas.xmlsoap .org/wsdl/"
xmlns:xsd1="htt p://ws.dispoliste.s koda.eis.de/"
xmlns:xsd2="htt p://state.ws.dispol iste.skoda.eis. de/">
<import namespace="http ://state.ws.dispol iste.skoda.eis. de/"/>
<import namespace="http ://schemas.xmlsoap .org/wsdl/"
schemaLocation= "http://schemas.xmlsoap .org/wsdl/"/>
<import
namespace="http ://schemas.xmlsoap .org/soap/encoding/"
schemaLocation= "http://schemas.xmlsoap .org/soap/encoding/"/>
<complexType name="ArrayOfDi spoListeBean">
<complexContent >
<restriction base="soapenc:A rray">
<sequence/>
<attribute ref="soapenc:ar rayType"
wsdl:arrayType= "xsd2:DispoList eBean[]"/>
</restriction>
</complexContent>
</complexType>
</schema>
<schema attributeFormDe fault="qualifie d"
elementFormDefa ult="unqualifie d"
targetNamespace ="http://state.ws.dispol iste.skoda.eis. de/"
xmlns="http://www.w3.org/2001/XMLSchema"
xmlns:xsd1="htt p://state.ws.dispol iste.skoda.eis. de/">
<complexType name="DispoList eBean">
<all>
<element name="ffin" nillable="true"
type="string"/>
<element name="bstlt" nillable="true"
type="string"/>
<element name="fzart" nillable="true"
type="string"/>
<element name="ffaell" nillable="true"
type="decimal"/>
<element name="fhinws" nillable="true"
type="string"/>
<element name="fkomnr" nillable="true"
type="decimal"/>
<element name="hbknna" nillable="true"
type="string"/>
<element name="fzgl" nillable="true"
type="string"/>
<element name="fbmod" nillable="true"
type="string"/>
<element name="fbfarb" nillable="true"
type="string"/>
<element name="flgr" nillable="true"
type="string"/>
<element name="fbopt" nillable="true"
type="string"/>
<element name="f90t" nillable="true"
type="string"/>
<element name="fagl" nillable="true"
type="string"/>
<element name="fredat" nillable="true"
type="decimal"/>
<element name="hbkvna" nillable="true"
type="string"/>
<element name="hahdln" nillable="true"
type="decimal"/>
<element name="frenr" nillable="true"
type="decimal"/>
<element name="fzfrt" nillable="true"
type="decimal"/>
<element name="hfhdln" nillable="true"
type="decimal"/>
<element name="fstsar" nillable="true"
type="string"/>
<element name="fbestd" nillable="true"
type="decimal"/>
<element name="hblfrw" nillable="true"
type="decimal"/>
</all>
</complexType>
</schema>
</types>
<message name="getListeR equest">
<part name="haendlern ummer" type="xsd:decim al"/>
<part name="fkomnr" type="xsd:decim al"/>
<part name="ffin" type="xsd:strin g"/>
<part name="fbmod" type="xsd:strin g"/>
<part name="orderBy" type="xsd:strin g"/>
<part name="fromCache " type="xsd:boole an"/>
<part name="testDaten " type="xsd:boole an"/>
</message>
<message name="getListeR esponse">
<part name="result" type="xsd1:Arra yOfDispoListeBe an"/>
</message>
<portType name="DispoList e">
<operation name="getListe" parameterOrder= "haendlernu mmer
fkomnr ffin fbmod orderBy fromCache testDaten">
<input message="tns:ge tListeRequest"
name="getListeR equest"/>
<output message="tns:ge tListeResponse"
name="getListeR esponse"/>
</operation>
</portType>
</definitions>
Nov 11 '05 #3
Have you consulted http://ws.apache.org/soap/docs/guide/interop.html
?

Could it be that you are experiencing the soap interop problem described
therein ?

With Apache SOAP v2.x, there was an issue that the Apache soap runtime
required incoming SOAP envelopes to embed an xsi:type on every param. The
SOAP spec does not require this, but the Apache SOAP implementation did.
Implementations of SOAP (such as .NET ) that did not embed xsi:type into
every param tended to confuse Apache SOAP. There is a workaround.

The other (preferred?) workaround is to move your Java implementation to
Apache AXIS. ;)

-D

"Jens" <je************ **@eurobase.lu> wrote in message
news:7b******** *************** ***@posting.goo gle.com...
Here are the missing informations for the webservice server-side:

Apache SOAP 2.3.1
xercesImpl.jar 2.3.0 Apache XML Parser

and the wsdl file comes here:

<?xml version="1.0" encoding="UTF-8"?>
<definitions name="DispoList e"
targetNamespace ="http://ws.dispoliste.s koda.eis.de.wsd l/DispoListe/"
xmlns="http://schemas.xmlsoap .org/wsdl/"
xmlns:tns="http ://ws.dispoliste.s koda.eis.de.wsd l/DispoListe/"
xmlns:xsd="http ://www.w3.org/2001/XMLSchema"
xmlns:xsd1="htt p://ws.dispoliste.s koda.eis.de/"
xmlns:xsd2="htt p://state.ws.dispol iste.skoda.eis. de/">
<types>
<schema attributeFormDe fault="qualifie d"
elementFormDefa ult="unqualifie d"
targetNamespace ="http://ws.dispoliste.s koda.eis.de/"
xmlns="http://www.w3.org/2001/XMLSchema"
xmlns:soapenc=" http://schemas.xmlsoap .org/soap/encoding/"
xmlns:wsdl="htt p://schemas.xmlsoap .org/wsdl/"
xmlns:xsd1="htt p://ws.dispoliste.s koda.eis.de/"
xmlns:xsd2="htt p://state.ws.dispol iste.skoda.eis. de/">
<import namespace="http ://state.ws.dispol iste.skoda.eis. de/"/>
<import namespace="http ://schemas.xmlsoap .org/wsdl/"
schemaLocation= "http://schemas.xmlsoap .org/wsdl/"/>
<import
namespace="http ://schemas.xmlsoap .org/soap/encoding/"
schemaLocation= "http://schemas.xmlsoap .org/soap/encoding/"/>
<complexType name="ArrayOfDi spoListeBean">
<complexContent >
<restriction base="soapenc:A rray">
<sequence/>
<attribute ref="soapenc:ar rayType"
wsdl:arrayType= "xsd2:DispoList eBean[]"/>
</restriction>
</complexContent>
</complexType>
</schema>
<schema attributeFormDe fault="qualifie d"
elementFormDefa ult="unqualifie d"
targetNamespace ="http://state.ws.dispol iste.skoda.eis. de/"
xmlns="http://www.w3.org/2001/XMLSchema"
xmlns:xsd1="htt p://state.ws.dispol iste.skoda.eis. de/">
<complexType name="DispoList eBean">
<all>
<element name="ffin" nillable="true"
type="string"/>
<element name="bstlt" nillable="true"
type="string"/>
<element name="fzart" nillable="true"
type="string"/>
<element name="ffaell" nillable="true"
type="decimal"/>
<element name="fhinws" nillable="true"
type="string"/>
<element name="fkomnr" nillable="true"
type="decimal"/>
<element name="hbknna" nillable="true"
type="string"/>
<element name="fzgl" nillable="true"
type="string"/>
<element name="fbmod" nillable="true"
type="string"/>
<element name="fbfarb" nillable="true"
type="string"/>
<element name="flgr" nillable="true"
type="string"/>
<element name="fbopt" nillable="true"
type="string"/>
<element name="f90t" nillable="true"
type="string"/>
<element name="fagl" nillable="true"
type="string"/>
<element name="fredat" nillable="true"
type="decimal"/>
<element name="hbkvna" nillable="true"
type="string"/>
<element name="hahdln" nillable="true"
type="decimal"/>
<element name="frenr" nillable="true"
type="decimal"/>
<element name="fzfrt" nillable="true"
type="decimal"/>
<element name="hfhdln" nillable="true"
type="decimal"/>
<element name="fstsar" nillable="true"
type="string"/>
<element name="fbestd" nillable="true"
type="decimal"/>
<element name="hblfrw" nillable="true"
type="decimal"/>
</all>
</complexType>
</schema>
</types>
<message name="getListeR equest">
<part name="haendlern ummer" type="xsd:decim al"/>
<part name="fkomnr" type="xsd:decim al"/>
<part name="ffin" type="xsd:strin g"/>
<part name="fbmod" type="xsd:strin g"/>
<part name="orderBy" type="xsd:strin g"/>
<part name="fromCache " type="xsd:boole an"/>
<part name="testDaten " type="xsd:boole an"/>
</message>
<message name="getListeR esponse">
<part name="result" type="xsd1:Arra yOfDispoListeBe an"/>
</message>
<portType name="DispoList e">
<operation name="getListe" parameterOrder= "haendlernu mmer
fkomnr ffin fbmod orderBy fromCache testDaten">
<input message="tns:ge tListeRequest"
name="getListeR equest"/>
<output message="tns:ge tListeResponse"
name="getListeR esponse"/>
</operation>
</portType>
</definitions>

Nov 11 '05 #4
Thank you for this information, that seems to hit the problem!
In a first step i will try out the described modifications within the
apache deployment descriptor.

Jens
Nov 11 '05 #5

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

Similar topics

1
3475
by: Kumar T via .NET 247 | last post by:
Could you please explain me the steps for consuming JavaWebservice through .NET client. I know how to connect through.NET webservice and I followed the same steps for this, but itdid not work out. In the Add web reference dialog I entered theJava webservice url, it returned the Messages "Sorry, I don'tspeak via HTTP GET- you have to use HTTP POST to talk to me" inthe left pane and "Discovery Information not available" in theright pane. I...
11
3958
by: Andy | last post by:
Make the story short, I have a VB.NET client interface calling .NET webservice, written in VB.NET as well. I am trying to make the client as thin as possible so I let the webservice part to handle most of the things. Currently I have a class called "Product" sitting my webserivce like the following: Code:
7
4987
by: Christian Wilhelm | last post by:
Hi! I'm trying to call a Java WebService out of a .net Client. There are two Methods, one Method requires one Parameter of type Parameter, the other Method requires one Parameter of type Parameter. I can call the first Method without Problems, the Parameter can be deserialized by the WebService. But if I want to call the second Method and give it an Array of Parameters, then the following exception is thrown by the WebService:...
6
8967
by: Sascha Schmidt | last post by:
Hi again! Well, the first part of my "mission" (calling remoting objects from a webservice) is solved. But there's another part: Calling this C#-Webservice from a java client. Is this a difficult task? Or is this quite easy, like just a few lines of source and using some of the packages from apache.org? Has anybody done this before and will like to tell me about his/her experiences?
4
21410
by: luckyabhishek | last post by:
Hi I am using a java webservice in a .NET application. The xml type of a field in this webservice is xsd:datetime. When i call the webservice from the application i get a deserialization error on the java webservice side. It says "Can not create instance of from string with schema type http://www.w3.org/2001/XMLSchema]". Can anyone let me know what could be the problem. I am just sending a DateTime object which i get from a VB...
0
1943
by: helldiversafe-news | last post by:
Hi all, I will use a apache soap service with an .net c# client and have a problem with an complex array: <?xml version='1.0' encoding='UTF-8'?> <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <SOAP-ENV:Body>
0
2234
by: Alexiel | last post by:
Hi, i have a problem, I have a Java Client and i call my webservice on ..NET. This run perfectly just except when i send parameters don't work fine. I send my code : This is my java client.......... import java.io.*; import java.util.*;
0
1606
by: Alexiel | last post by:
Hi, i have a problem, I have a Java Client and i call my webservice on ..NET. This run perfectly just except when i send parameters don't work fine. I send my code : This is my java client..........
0
4533
by: karazy | last post by:
I have been reading all the forums and understand whats going wrong but am not sure how to fix it. I have written a basic doc/literal web service. But when it is called by a .net client it will return NULL. I used proxytrace to check the data that goes back and forward. I can see my request and response. See below at the bottom. I believe that this error occurs because of a problem .Net has in reading my doc/literal WSDL. Or my Axis...
0
1802
by: vpal61 | last post by:
Hello, I have an Excel/VBA web service client with SOAP Toolkit, consuming Apache Tomcat webservice, which is working fine. Now I am trying to migrate to .NET, and build client in VS2005 with VSTO in C#. The problem is that all array types as returned by client are empty (simple types are OK). Any help very appreciated. Thanks, Vadim
0
9287
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 synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10046
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
9886
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
9722
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
7259
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
6542
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();...
1
3817
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3369
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2677
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.