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

.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:string" 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 3361
Apache What?
Apache SOAP
Apache AXIS?
which version?

Can you show us the WSDL?
"Jens" <je**************@eurobase.lu> wrote in message
news:7b**************************@posting.google.c om...
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:string" 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="DispoListe"
targetNamespace="http://ws.dispoliste.skoda.eis.de.wsdl/DispoListe/"
xmlns="http://schemas.xmlsoap.org/wsdl/"
xmlns:tns="http://ws.dispoliste.skoda.eis.de.wsdl/DispoListe/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsd1="http://ws.dispoliste.skoda.eis.de/"
xmlns:xsd2="http://state.ws.dispoliste.skoda.eis.de/">
<types>
<schema attributeFormDefault="qualified"
elementFormDefault="unqualified"
targetNamespace="http://ws.dispoliste.skoda.eis.de/"
xmlns="http://www.w3.org/2001/XMLSchema"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
xmlns:xsd1="http://ws.dispoliste.skoda.eis.de/"
xmlns:xsd2="http://state.ws.dispoliste.skoda.eis.de/">
<import namespace="http://state.ws.dispoliste.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="ArrayOfDispoListeBean">
<complexContent>
<restriction base="soapenc:Array">
<sequence/>
<attribute ref="soapenc:arrayType"
wsdl:arrayType="xsd2:DispoListeBean[]"/>
</restriction>
</complexContent>
</complexType>
</schema>
<schema attributeFormDefault="qualified"
elementFormDefault="unqualified"
targetNamespace="http://state.ws.dispoliste.skoda.eis.de/"
xmlns="http://www.w3.org/2001/XMLSchema"
xmlns:xsd1="http://state.ws.dispoliste.skoda.eis.de/">
<complexType name="DispoListeBean">
<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="getListeRequest">
<part name="haendlernummer" type="xsd:decimal"/>
<part name="fkomnr" type="xsd:decimal"/>
<part name="ffin" type="xsd:string"/>
<part name="fbmod" type="xsd:string"/>
<part name="orderBy" type="xsd:string"/>
<part name="fromCache" type="xsd:boolean"/>
<part name="testDaten" type="xsd:boolean"/>
</message>
<message name="getListeResponse">
<part name="result" type="xsd1:ArrayOfDispoListeBean"/>
</message>
<portType name="DispoListe">
<operation name="getListe" parameterOrder="haendlernummer
fkomnr ffin fbmod orderBy fromCache testDaten">
<input message="tns:getListeRequest"
name="getListeRequest"/>
<output message="tns:getListeResponse"
name="getListeResponse"/>
</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.google.c om...
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="DispoListe"
targetNamespace="http://ws.dispoliste.skoda.eis.de.wsdl/DispoListe/"
xmlns="http://schemas.xmlsoap.org/wsdl/"
xmlns:tns="http://ws.dispoliste.skoda.eis.de.wsdl/DispoListe/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsd1="http://ws.dispoliste.skoda.eis.de/"
xmlns:xsd2="http://state.ws.dispoliste.skoda.eis.de/">
<types>
<schema attributeFormDefault="qualified"
elementFormDefault="unqualified"
targetNamespace="http://ws.dispoliste.skoda.eis.de/"
xmlns="http://www.w3.org/2001/XMLSchema"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
xmlns:xsd1="http://ws.dispoliste.skoda.eis.de/"
xmlns:xsd2="http://state.ws.dispoliste.skoda.eis.de/">
<import namespace="http://state.ws.dispoliste.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="ArrayOfDispoListeBean">
<complexContent>
<restriction base="soapenc:Array">
<sequence/>
<attribute ref="soapenc:arrayType"
wsdl:arrayType="xsd2:DispoListeBean[]"/>
</restriction>
</complexContent>
</complexType>
</schema>
<schema attributeFormDefault="qualified"
elementFormDefault="unqualified"
targetNamespace="http://state.ws.dispoliste.skoda.eis.de/"
xmlns="http://www.w3.org/2001/XMLSchema"
xmlns:xsd1="http://state.ws.dispoliste.skoda.eis.de/">
<complexType name="DispoListeBean">
<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="getListeRequest">
<part name="haendlernummer" type="xsd:decimal"/>
<part name="fkomnr" type="xsd:decimal"/>
<part name="ffin" type="xsd:string"/>
<part name="fbmod" type="xsd:string"/>
<part name="orderBy" type="xsd:string"/>
<part name="fromCache" type="xsd:boolean"/>
<part name="testDaten" type="xsd:boolean"/>
</message>
<message name="getListeResponse">
<part name="result" type="xsd1:ArrayOfDispoListeBean"/>
</message>
<portType name="DispoListe">
<operation name="getListe" parameterOrder="haendlernummer
fkomnr ffin fbmod orderBy fromCache testDaten">
<input message="tns:getListeRequest"
name="getListeRequest"/>
<output message="tns:getListeResponse"
name="getListeResponse"/>
</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
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. ...
11
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...
7
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...
6
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...
4
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...
0
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...
0
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...
0
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...
0
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...
0
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...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

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.