Skip to main content

JAX-WS 2.0EA2: troubles with MS-Excel client for annotations sample

2 replies [Last post]
juergen_zimmermann
Offline
Joined: 2005-06-24

I built an MS-Excel 2003SP1 client for the "annotations" sample. Excel is enhanced with "MS-XML 4.0SP2" and "Microsoft Office 2003 Web Services Toolkit 2.01".

Invoking the Web Service I get this error message (inside Excel):

unexpected element name: expected=num1, actual={http://duke.org}num1

When implementing the addnumbers scenario with Axis 1.2.1 and Excel 2003SP1 there was no problem.

This is the result of http://localhost:8080/jaxws-annotations/addnumbers?wsdl :

<?xml version="1.0" encoding="UTF-8" ?>

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
jitu
Offline
Joined: 2003-06-14

In rpc/lit, the parameters should be in no namespace. Looks like Excel is sending them with namespace, and JAXWS impl throwing the error on the server side. Do you have the SOAP messages exchanged ?

juergen_zimmermann
Offline
Joined: 2005-06-24

1) This is the SOAP message sent by Excel:

GET /wi/addnumbers?wsdl HTTP/1.1
Accept: */*
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322)
Host: localhost
Connection: Keep-Alive

GET /wi/addnumbers?xsd=schema1.xsd HTTP/1.1
Accept: */*
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322)
Host: localhost
Connection: Keep-Alive

POST /wi/addnumbers HTTP/1.1
SOAPAction: ""
Content-Type: text/xml; charset="UTF-8"
User-Agent: SOAP Toolkit 3.0
Host: localhost
Content-Length: 479
Connection: Keep-Alive
Cache-Control: no-cache

2233

2) This is the SOAP message sent back by Tomcat/JAX-WS

HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Content-Type: text/xml
Content-Length: 1922
Date: Mon, 27 Jun 2005 15:42:53 GMT































HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Content-Type: text/xml
Content-Length: 531
Date: Mon, 27 Jun 2005 15:42:53 GMT







HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
SOAPAction: ""
Content-Type: text/xml;charset=utf-8
Content-Length: 289
Date: Mon, 27 Jun 2005 15:42:53 GMT

soapenv:Receiverunexpected element name: expected=num1, actual={http://duke.org}num1