Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

getting Complex type value null  RSS feed

 
ravi naik
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi i have created a web service with input parameter as a complex type called Recordref,the recordref contains two variable internel id and recordtype. I have developed the web service using MYeclipse.First i created a wsdl then genberated java files then put my business logic into it.I have tested with Sopa UI its working fine but the i am getting Complex type variable values as null.



<xsd:complexType name="RecordRef">
<xsd:sequence>
<xsd:element name="internelid" type="xsd:string"></xsd:element>
<xsd:element name="recordtype" type="xsd:string"></xsd:element>
<xsd:element name="externelid" type="xsd:string"></xsd:element>
<xsd:element name="description" type="xsd:string"></xsd:element>
</xsd:sequence>
</xsd:complexType>



public String cddd(RecordRef NotifyInput)
{
try
{
objinternelid= NotifyInput.getInternelid().toString();
objinterneltype = NotifyInput.getRecordtype();

}
}

am getting objinternelid and objinterneltype as nulll






please help

 
Ivan Krizsan
Ranch Hand
Posts: 2198
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi!
Have you examined the requests going into the service from soapUI and from your client to determine the difference of the data contained in the requests?
To do so, use the TCP monitor in Eclipse or some packet sniffer, like Wireshark.
My guess is that the data from the client does not supply the values that you say are null.
Best wishes!
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!