Hi All,
I am facing a very strange problem while deploying our web service.
The environment is as follows:
- Axis 1.4 
- jboss-4.2.0.GA
- jdk1.5.0_06
 
The WSDL defines the following elements and messages
 
<wsdl:types>
    <xs:schema xmlns:tns="urn:myspace"
    xmlns:ns1="http://schemas.xmlsoap.org/soap/encoding/";
    targetNamespace="urn:patchmdsvc">
                    <xs:element name="getEnv">
                            <xs:complexType>
                                    <xs:sequence>
                                            <xs:element name="spec"
type="myspace:Spec" maxOccurs="unbounded"/>
                                    </xs:sequence>
                            </xs:complexType>
                    </xs:element>
                    <xs:element name="getResponse">
                            <xs:complexType>
                                    <xs:sequence>
                                            <xs:element name="result"
type="myspace:Prod" minOccurs="0" maxOccurs="unbounded"/>
                                    </xs:sequence>
                            </xs:complexType>
                    </xs:element>
                    <xs:complexType name="Spec">
                            <xs:sequence>
                                    <xs:element name="clientID"
type="xs:string" minOccurs="0"/>
                                    <xs:element name="name"
type="xs:string"/>
                                    <xs:element name="version"
type="xs:string"/>
                                    <xs:element name="locale"
type="xs:string"/>
                                    <xs:element name="releaseBuild"
type="xs:string" minOccurs="0"/>
                                    <xs:any minOccurs="0"
maxOccurs="unbounded" processContents="skip" namespace="##targetNamespace"/>
                            </xs:sequence>
                    </xs:complexType>
                    <xs:complexType name="Prod">
                            <xs:sequence>
                                    <xs:element name="name"
type="xs:string"/>
                                    <xs:element name="version"
type="xs:string"/>
                                    <xs:element name="locale"
type="xs:string"/>
                                     <xs:any minOccurs="0"
maxOccurs="unbounded" processContents="lax" namespace="##targetNamespace"/>
                            </xs:sequence>
                    </xs:complexType>
                ...................................... <other elements>
 
The messages, port and binding ::
 
<wsdl:message name="getEnvRequest">
            <wsdl:part name="parameter" element="myspace:getEnv"/>
    </wsdl:message>
    <wsdl:message name="getEnvResponse">
            <wsdl:part name="parameter" element="myspace:getResponse"/>
    </wsdl:message>
    <wsdl:portType name="MgmtPortType">
            <wsdl:operation name="getEnv">
                    <wsdl:input message="myspace:getEnvRequest"/>
                    <wsdl:output message="myspace:getEnvResponse"/>
            </wsdl:operation>
    </wsdl:portType>
 
<wsdl:binding name="MgmtBinding" type="myspace:MgmtPortType">
            <soap:binding style="document"
transport="http://schemas.xmlsoap.org/soap/http"/>
            <wsdl:operation name="getEnv">
                    <soap:operation soapAction="getEnv" />
                    <wsdl:input >
                            <soap:body use="literal"/>
                    </wsdl:input>
                    <wsdl:output >
                            <soap:body use="literal"/>
                    </wsdl:output>
            </wsdl:operation>
    </wsdl:binding>
 
 
My Service Impl
 
public List<Prod> getPatchesforEnv(List<spec> spec) {

for (Iterator iter = spec.iterator(); iter.hasNext();) {
Spec element = (Spec) iter.next();
System.out.println(element.getName());
System.out.println(element.version);
System.out.println(element.getName());
}

List<Product> list = new ArrayList<Product>();
Prod  p = new Prod();
p.setLocale("all");
p.setName("TestProdt");
p.setVersion("123");
return list; 
}

 
My Client:
 
myspace.PatchMgmt service = new PatchMgmtLocator();
MgmtPortType port = service.getPatchMgmtPort(new
URL(http://localhost:7001/..... <http://localhost:7001/> ));

 

The problem is this::

When I try printing the values inside arrays of parameter on the service all
are null.

And when I try printing values if response array objects I get null.

Can somebody pls help if you have faced sucha a situation !!!!

 
 
 
regards,
Shashikant Soni
 
 


DISCLAIMER:
This message (including attachment if any) is confidential and may be 
privileged. Before opening attachments please check them for viruses and 
defects. MindTree Consulting Limited (MindTree) will not be responsible for any 
viruses or defects or any forwarded attachments emanating either from within 
MindTree or outside. If you have received this message by mistake please notify 
the sender by return  e-mail and delete this message from your system. Any 
unauthorized use or dissemination of this message in whole or in part is 
strictly prohibited.Please note that e-mails are susceptible to change and 
MindTree shall not be liable for any improper, untimely or incomplete 
transmission.
E-mail may contain viruses. Before opening attachments please check them for 
viruses and defects. While MindTree Consulting Limited (MindTree) has put in 
place checks to minimize the risks, MindTree will not be responsible for any 
viruses or defects or any forwarded attachments emanating either from within 
MindTree or outside. 

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to