Re: Axis2 and .Net connection
If you are interested in interoperability, you should do contract first design (wsdl2java) instead of java2wsdl. HTH, Stefan 2007/5/8, Paul Fremantle <[EMAIL PROTECTED]>: Which version of Axis2 are you using? Have you tried 1.2? I think it generates slightly more .NET friendly WSDL. Paul On 5/8/07, Ramazan Pekin <[EMAIL PROTECTED]> wrote: > > > > 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; > > > > - 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";> > > > > ARUI015MService > > - > > > - xmlns:ax21="http://directinv.services.arui015m.app.efes.com/xsd"; > attributeFormDefault="qualified" elementFormDefault="qualified" > targetNamespace="http://directinv.services.arui015m.app.efes.com/xsd";> > > > > > - > > > - > > > > > > > > > > - http://arui015m.app.efes.com/xsd"; > attributeFormDefault="qualified" elementFormDefault="qualified" > targetNamespace="http://arui015m.app.efes.com/xsd";> > > > - > > > - > > > - > > > > > > > > > > - > > > - > > > - > > > > > > > > > > - > > > > > > - > > > > > > - > > > - > > >xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl"; > message="axis2:dealerListMessage" wsaw:Action="urn:dealerList" /> > > > > > > - type="axis2:ARUI015MServicePortType"> > > >transport="http://schemas.xmlsoap.org/soap/http"; > style="document" /> > > - > > > > > - > > > > > > - > > > > > > > > - type="axis2:ARUI015MServicePortType"> > > >transport="http://schemas.xmlsoap.org/soap/http"; > style="document" /> > > - > > > > > - > > > > > > - > > > > > > > > - type="axis2:ARUI015MServicePortType"> > > > > > - > > > > > - > > > > > > - > > > > > > > > - > > > - binding="axis2:ARUI015MServiceSOAP11Binding"> > > >location="http://192.168.49.162:8080/axis2/services/ARUI015MService"; > /> > > > - binding="axis2:ARUI015MServiceSOAP12Binding"> > > >location="http://192.168.49.162:8080/axis2/services/ARUI015MService"; > /> > > > - binding="axis2:ARUI015MServiceHttpBinding"> > > >location="http://192.168.49.162:8080/axis2/services/ARUI015MService"; > /> > > > > > Yahoo! kullaniyor musunuz? > Istenmeyen postadan biktiniz mi? Istenmeyen postadan en iyi korunma Yahoo! > Posta'da > http://tr.mail.yahoo.com -- Paul Fremantle VP/Technology, WSO2 and OASIS WS-RX TC Co-chair http://bloglines.com/blog/paulfremantle [EMAIL PROTECTED] "Oxygenating the Web Service Platform", www.wso2.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROT
Re: Axis2 and .Net connection
Which version of Axis2 are you using? Have you tried 1.2? I think it generates slightly more .NET friendly WSDL. Paul On 5/8/07, Ramazan Pekin <[EMAIL PROTECTED]> wrote: 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; - 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";> ARUI015MService - - http://directinv.services.arui015m.app.efes.com/xsd"; attributeFormDefault="qualified" elementFormDefault="qualified" targetNamespace="http://directinv.services.arui015m.app.efes.com/xsd";> - - - http://arui015m.app.efes.com/xsd"; attributeFormDefault="qualified" elementFormDefault="qualified" targetNamespace="http://arui015m.app.efes.com/xsd";> - - - - - - - - - - http://www.w3.org/2006/05/addressing/wsdl"; message="axis2:dealerListMessage" wsaw:Action="urn:dealerList" /> - http://schemas.xmlsoap.org/soap/http"; style="document" /> - - - - http://schemas.xmlsoap.org/soap/http"; style="document" /> - - - - - - - - - http://192.168.49.162:8080/axis2/services/ARUI015MService"; /> - http://192.168.49.162:8080/axis2/services/ARUI015MService"; /> - http://192.168.49.162:8080/axis2/services/ARUI015MService"; /> Yahoo! kullaniyor musunuz? Istenmeyen postadan biktiniz mi? Istenmeyen postadan en iyi korunma Yahoo! Posta'da http://tr.mail.yahoo.com -- Paul Fremantle VP/Technology, WSO2 and OASIS WS-RX TC Co-chair http://bloglines.com/blog/paulfremantle [EMAIL PROTECTED] "Oxygenating the Web Service Platform", www.wso2.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Axis2 and .Net connection
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; - 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";> ARUI015MService - - http://directinv.services.arui015m.app.efes.com/xsd"; attributeFormDefault="qualified" elementFormDefault="qualified" targetNamespace="http://directinv.services.arui015m.app.efes.com/xsd";> - - - http://arui015m.app.efes.com/xsd"; attributeFormDefault="qualified" elementFormDefault="qualified" targetNamespace="http://arui015m.app.efes.com/xsd";> - - - - - - - - - - http://www.w3.org/2006/05/addressing/wsdl"; message="axis2:dealerListMessage" wsaw:Action="urn:dealerList" /> - http://schemas.xmlsoap.org/soap/http"; style="document" /> - - - - http://schemas.xmlsoap.org/soap/http"; style="document" /> - - - - - - - - - http://192.168.49.162:8080/axis2/services/ARUI015MService"; /> - http://192.168.49.162:8080/axis2/services/ARUI015MService"; /> - http://192.168.49.162:8080/axis2/services/ARUI015MService"; /> ___ Yahoo! kullaniyor musunuz? http://tr.mail.yahoo.com Istenmeyen postadan biktiniz mi? Istenmeyen postadan en iyi korunma Yahoo! Posta'da