Code Generation Error
---------------------
Key: XFIRE-749
URL: http://jira.codehaus.org/browse/XFIRE-749
Project: XFire
Issue Type: Bug
Affects Versions: 1.2.2
Environment: Windows/XP, Java 1.5
Reporter: Ramesh Narayanan
Assigned To: Dan Diephouse
Attachments: CtsmanService.wsdl
I am new to XFire and I have done all the initial service development and
deployment. I should say that WebServices development and deployment wa snever
ever easier before and XFire has simplified a lot. To my mind, its the best
framework for developing Webservices at least in Java. Now I am moving to
complex examples and I am having a annoying issue and I have spent close to 3
days to solve it myself but have been unsuccessful so far. I am attaching teh
wsdl of a service deployed elsewhere in our enterprise and I need to write a
client to communicate with that service deployed in Axis Framework. I am
getting compilation errors in generating teh code through WsGen. I am attaching
the exception trace also with this email. I fixed the exception trace by
changing the schema definition from tns to xsd. But then When I actually invoke
the service, there is no exception and the return type is of the expected
Object, but then the Object is NOT null, but the attributes of the objects are
NOT set properly. I am including the ethereal trace as well here! I am also
including the client code here.
If you guys can help me fix this issue, it would be awesome and I would say
prayers for you folks.
Thanks
Ramesh
The SOAP Trace between the two parties
=====================================
Request
========
POST /mcu/services/CtsmanService HTTP/1.1
SOAPAction: ""
Content-Type: text/xml; charset=UTF-8
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; XFire Client
+http://xfire.codehaus.org)
Host: tsbu-sr4
Expect: 100-continue
Content-Length: 1985
HTTP/1.1 100 Continue
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><soap:Body><sendRegister
xmlns="http://ctsman.mcu.soap.scheduler.ts.cisco.com"><ns2:in0
xmlns:ns2="http://ctsman.mcu.soap.scheduler.ts.cisco.com"><configurationInfo><accessNumber><accessNumber>77777</accessNumber><isGroupRestricted
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="true"
/><isNoConferenceIDRequired
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="true"
/></accessNumber><conferencePolicy><isActiveSpeakerOn
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="true"
/><showNewParticipant>false</showNewParticipant><autoLectureMode>false</autoLectureMode><announceEntryDeparture>false</announceEntryDeparture><lockable>false</lockable><maxParticpants
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="true"
/><switchBy>Segment</switchBy><resolution
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="true"
/><bandwidth xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:nil="true" /><leadTimeMinutes
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="true"
/><lagTimeMinutes xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:nil="true"
/></conferencePolicy><isPrimary>true</isPrimary><schedulableResources>5</schedulableResources><totalResources>50</totalResources><displayName>Ramesh
Initial Dirty Harry Box</displayName><description
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="true"
/><modelType>7835H</modelType></configurationInfo><registerInfo><hostName>ramesnar-wxp</hostName><ipAddress>128.107.86.231</ipAddress><version><version
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="true"
/></version><macAddress>00-13-02-9A-5D-77</macAddress><webServiceURL>https://ramesnar-wxp/DHInterface</webServiceURL></registerInfo></ns2:in0></sendRegister></soap:Body></soap:Envelope>HTTP/1.1
200 OK
Content-Type: text/xml;charset=utf-8
Transfer-Encoding: chunked
Date: Fri, 10 Nov 2006 00:12:16 GMT
Server: Apache-Coyote/1.1
SOAP Response (if u look carefully, the XML response has the attributes set
properly, but somehow it doesnt transalate into the Response Object)
===============
<?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:sendRegisterResponse
soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:ns1="http://ctsman.mcu.soap.scheduler.ts.cisco.com"><sendRegisterReturn
href="#id0"/></ns1:sendRegisterResponse><multiRef id="id0" soapenc:root="0"
soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
xsi:type="ns2:RegisterResponse"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:ns2="http://schema.mcu.server.scheduler.ts.cisco.com"><heartBeatInterval
xsi:type="xsd:int">1000</heartBeatInterval><registerInfo
href="#id1"/><responseCode xsi:type="xsd:int">1</responseCode><responseString
xsi:type="soapenc:string">OK</responseString></multiRef><multiRef id="id1"
soapenc:root="0"
soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
xsi:type="ns3:RegisterInfo"
xmlns:ns3="http://schema.mcu.server.scheduler.ts.cisco.com"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"><hostName
xsi:type="soapenc:string">tsbu-sr4</hostName><ipAddress
xsi:type="soapenc:string">172.28.176.28</ipAddress><version
href="#id2"/><macAddress
xsi:type="soapenc:string">00:14:c2:c0:fd:9f</macAddress><webServiceURL
xsi:type="soapenc:string">https://ramesnar-wxp/DHInterface</webServiceURL></multiRef><multiRef
id="id2" soapenc:root="0"
soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
xsi:type="ns4:Version"
xmlns:ns4="http://schema.mcu.server.scheduler.ts.cisco.com"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"><version
xsi:type="soapenc:string">00.01</version></multiRef></soapenv:Body></soapenv:Envelope>
0
The client code was straightforward as explained in the website!
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list please visit:
http://xircles.codehaus.org/manage_email