Hi, I want to ask a question about axis2 and .net communication. I have a problem, when I send a value to the .net client, all the values coming as null or default values. I am using eclipse. These are my steps;
I have create a java project. I have create a class ARUI015M; package com.efes.app.arui015m; import com.efes.app.arui015m.services.directinv.DEALERLIST; public class ARUI015M { public DEALERLIST dealerList(String arg1, String arg2){ System.out.println("dealerList called."); DEALERLIST dealerList = new DEALERLIST(); dealerList.MESSAGE = "TEST COMPLETED SUCCESSFULY!"; return dealerList; } } public class DEALERLIST{ public int RC = 0; public String MESSAGE = null; } I have generate wsdl file by Axis2 Code Generator eclipse plugin. I have created aar file by Axis2 Service Archiver eclipse plugin which includes services.xml and services.wsdl. I have put it under C:\java\axis\repository\services\ and added to services.list. I have redoploy Axis2 container. I have reached to this address http://127.0.0.1:8080/axis2/services/, ARUI015MService was there. I have create a .net project and I have added webReference by this url. http://127.0.0.1:8080/axis2/services/ARUI015MService?wsdl. I have writed .net code, I have to say that, I didnt understand .net code is it true? localWebReference.ARUI015MService localService = new localWebReference.ARUI015MService(); localWebReference.dealerListResponse localDealerList = localService.dealerList(new dealerList()); localDealerMessage.Text = [EMAIL PROTECTED]; After all of these, MESSAGE coming as null. What is my wrong, can you help me please? I saw the log on cmd screen -> System.out.println("dealerList called."); this is my wsdl file; - <wsdl:definitions xmlns:axis2="http://arui015m.app.efes.com" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:ns0="http://directinv.services.arui015m.app.efes.com/xsd" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:ns1="http://arui015m.app.efes.com/xsd" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" targetNamespace="http://arui015m.app.efes.com"> <wsdl:documentation>ARUI015MService</wsdl:documentation> - <wsdl:types> - <xs:schema xmlns:ax21="http://directinv.services.arui015m.app.efes.com/xsd" attributeFormDefault="qualified" elementFormDefault="qualified" targetNamespace="http://directinv.services.arui015m.app.efes.com/xsd"> <xs:element name="DEALERLIST" type="ax21:DEALERLIST" /> - <xs:complexType name="DEALERLIST"> - <xs:sequence> <xs:element name="RC" type="xs:int" /> <xs:element name="MESSAGE" nillable="true" type="xs:string" /> </xs:sequence> </xs:complexType> </xs:schema> - <xs:schema xmlns:ns="http://arui015m.app.efes.com/xsd" attributeFormDefault="qualified" elementFormDefault="qualified" targetNamespace="http://arui015m.app.efes.com/xsd"> - <xs:element name="dealerList"> - <xs:complexType> - <xs:sequence> <xs:element name="arg1" nillable="true" type="xs:string" /> <xs:element name="arg2" nillable="true" type="xs:string" /> </xs:sequence> </xs:complexType> </xs:element> - <xs:element name="dealerListResponse"> - <xs:complexType> - <xs:sequence> <xs:element name="return" nillable="true" type="ns0:DEALERLIST" /> </xs:sequence> </xs:complexType> </xs:element> </xs:schema> </wsdl:types> - <wsdl:message name="dealerListMessage"> <wsdl:part name="part1" element="ns1:dealerList" /> </wsdl:message> - <wsdl:message name="dealerListResponse"> <wsdl:part name="part1" element="ns1:dealerListResponse" /> </wsdl:message> - <wsdl:portType name="ARUI015MServicePortType"> - <wsdl:operation name="dealerList"> <wsdl:input xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl" message="axis2:dealerListMessage" wsaw:Action="urn:dealerList" /> <wsdl:output message="axis2:dealerListResponse" /> </wsdl:operation> </wsdl:portType> - <wsdl:binding name="ARUI015MServiceSOAP11Binding" type="axis2:ARUI015MServicePortType"> <soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document" /> - <wsdl:operation name="dealerList"> <soap:operation soapAction="urn:dealerList" style="document" /> - <wsdl:input> <soap:body use="literal" /> </wsdl:input> - <wsdl:output> <soap:body use="literal" /> </wsdl:output> </wsdl:operation> </wsdl:binding> - <wsdl:binding name="ARUI015MServiceSOAP12Binding" type="axis2:ARUI015MServicePortType"> <soap12:binding transport="http://schemas.xmlsoap.org/soap/http" style="document" /> - <wsdl:operation name="dealerList"> <soap12:operation soapAction="urn:dealerList" style="document" /> - <wsdl:input> <soap12:body use="literal" /> </wsdl:input> - <wsdl:output> <soap12:body use="literal" /> </wsdl:output> </wsdl:operation> </wsdl:binding> - <wsdl:binding name="ARUI015MServiceHttpBinding" type="axis2:ARUI015MServicePortType"> <http:binding verb="POST" /> - <wsdl:operation name="dealerList"> <http:operation location="dealerList" /> - <wsdl:input> <mime:content type="text/xml" /> </wsdl:input> - <wsdl:output> <mime:content type="text/xml" /> </wsdl:output> </wsdl:operation> </wsdl:binding> - <wsdl:service name="ARUI015MService"> - <wsdl:port name="ARUI015MServiceSOAP11port_http" binding="axis2:ARUI015MServiceSOAP11Binding"> <soap:address location="http://192.168.49.162:8080/axis2/services/ARUI015MService" /> </wsdl:port> - <wsdl:port name="ARUI015MServiceSOAP12port_http" binding="axis2:ARUI015MServiceSOAP12Binding"> <soap12:address location="http://192.168.49.162:8080/axis2/services/ARUI015MService" /> </wsdl:port> - <wsdl:port name="ARUI015MServiceHttpport" binding="axis2:ARUI015MServiceHttpBinding"> <http:address location="http://192.168.49.162:8080/axis2/services/ARUI015MService" /> </wsdl:port> </wsdl:service> </wsdl:definitions> ___________________________________________________________________ Yahoo! kullaniyor musunuz? http://tr.mail.yahoo.com Istenmeyen postadan biktiniz mi? Istenmeyen postadan en iyi korunma Yahoo! Posta'da