Re: Axis 1.4 Accented characters encoding

2006-11-23 Thread Nicolas Guaneme

Hello, you must encryp the strings.. it's not the best way but work.

 




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



Re: [Axis2] How to access service address in the service

2006-08-17 Thread Nicolas Guaneme

Desiree Hilbring wrote:



Hello,

I need the endpoint address of my service in the implementation of a
service method. 
How can I access the address?


Thanks Desiree


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




 


Hi, for get the endpoint you can do this method
java.lang.String endpointTemp = service_nameProxy.getEndpoint();

Nicolás Rico.


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



Re: a question about axis

2006-08-15 Thread Nicolas Guaneme




j g wrote:

  Hi,
  I have a php soap webservice to query mssql database. I need to
write a java clientto call this service.Is Axis work for it and how?
Will anybody give some example code?
  Thanks in advance
  --jg
   
  Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone
calls. 
Great rates starting at 1/min.
  
  

No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.405 / Virus Database: 268.10.10/419 - Release Date: 15/08/2006




::: AVISORTECH :::



  

  
   


  
  Hello, with this ant-script you can generate the client:
  
  project name="somthing"
 property name="axis.home" value="C:/axis-1_3" /
 property name="javamail.home" value="C:/javamail-1.4ea" /
 property name="jaf.home" value="C:/jaf-1.0.2" /
 path id="axis.classpath" 
  fileset dir="axis/lib"
include name="**/*.jar"/
  /fileset
  fileset dir="C:/javamail-1.4ea/lib"
include name="**/*.jar"/
  /fileset
  fileset dir="C:/jaf-1.0.2"
include name="**/*.jar"/
  /fileset
 /path 
 taskdef resource="axis-tasks.properties"
classpathref="axis.classpath" /
 
 
 target name="generate-client-stub"
 axis-wsdl2java url=""
  mapping namespace="namespace"
  package="packeage"/
 /axis-wsdl2java
 /target
  
  
/project
  
   Nicols G. Rico 
  Ing. Desarrollador.
  Avisortech Ltda.
  Telfono: (571) 3 - 45 88 33
  [EMAIL PROTECTED]
  
  Este mensaje y cualquier archivo anexo
son confidenciales y para uso exclusivo de la persona(s) o entidad(es)
a la(s) que va dirigido, en los trminos de los acuerdos de
confidencialidad previamente suscritos, si los hubiere. Su contenido
est protegido por las normas que garantizan la inviolabilidad de la
correspondencia y por las que tutelan el secreto industrial, secreto
comercial, informacin sujeta a reserva bancaria o por cualquier otro
tipo de secreto profesional o garanta similar, como la reserva entre
abogado y cliente, segn el caso. Por ello, si usted ha recibido este
mensaje por error o equivocacin, por favor brrelo de su sistema
inmediatamente, as como todas sus copias y notifique al remitente en
forma inmediata. Bajo las leyes penales y civiles del pas de origen de
este correo, Usted no podr usar, revelar, distribuir, imprimir o
copiar ninguna de las partes de este mensaje sin el consentimiento del
remitente.

  






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



Re: An Error by Run the StubClient.java in Eclipse

2006-06-22 Thread Nicolas Guaneme
Hi muthana, you must be sure that the tomcat server is runing and the 
url it's ok. Try the ulr in your browser for view the wsdl descrption.



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



Re: [AXis2] best version to be on production

2006-06-15 Thread Nicolas Guaneme

kavithaa Rajavenkateshwaran wrote:


Hi,

We are thinking about using axis in production. I tried with  the  
latest release in axis1.x and axis2.
Axis1.x seems to   be much more stable. But not sure.Can some suggest  
me which version to go with.


Thanks,
Kavithaa

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




Hi, I prefer Axis 1 beacause you can find more doc and examples for 
develop and support... I work with Axis 1 in production easy and stable.



Nicolás G. Rico



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



Re: problem using axis

2006-06-14 Thread Nicolas Guaneme




Ashar Siddiqui wrote:

  
  
  
  
  Hi,
  
  I have down loaded Axis.
I have on WSDL and I successfully
generated Proxy now I have no idea how o write a class to send and
receive Soap
envelop.
  
  Could you please help me
to find out how I will write a
client that can send and receive soap envelop.
  
  If trying to download
sample I am getting error. And example
is also not able to connect to your server
  
  import
  org.apache.axis.client.Call;
  import
  org.apache.axis.client.Service;
  
  import
  javax.xml.namespace.QName;
  
  
  
  public
  class
  axisClient
  {
  
  public
  static
  void
  main(String
  [] args) {
  
  try
  {
  
  String
endpoint =
  
  "http://ws.apache.org:5049/axis/services/echo";
  
  
  
  Service
  service
  = new
  Service();
  
  Call
  call
= (Call) service.createCall();
  
  
  
  call.setTargetEndpointAddress(
  new
  java.net.URL(endpoint)
  );
  
  call.setOperationName(new
  QName("http://soapinterop.org/", "echoString"));
  
  
  String ret = (String)
  call.invoke(
  new
  Object[]
  { "Hello!"
  } );
  
  
  
  System.out.println("Sent 'Hello!',
got '"
  + ret + "'");
  
  } catch
  (Exception
  e) {
  
  System.err.println(e.toString());
  
  }
  
  }
  
  }
  
  
  Thank
you
  ashar
  
  
  

No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.394 / Virus Database: 268.8.4/363 - Release Date: 13/06/2006
  

HI,

You can run this task ant for create a client-stub

 target name="generate-client-stub"
 axis-wsdl2java url=""
  mapping namespace="http://co/com/service/"
package="co.com.www.service.client"/
 /axis-wsdl2java
 /target

after that, you must do a new class for implements the class that
genereted.


Nicols G. Rico




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



Re: Simple Question Axis

2006-06-13 Thread Nicolas Guaneme




Cyrille Le Clerc wrote:
Hi Nicolas,
  
We are blind without the stack trace of the exception. You should find
it in the server-side logs.
  
Cyrille
  
  On 6/13/06, Nicolas Guaneme
   [EMAIL PROTECTED]
wrote:
  

Hi Cyrille Le Clerc

- JDK: 1.4_01
- Tomcat 5.0:28
- Axis 1.3

With the tcp-mon this is the message:
?xml version="1.0"
encoding="ISO-8859-1"?
 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
 soapenv:Fault

faultcodesoapenv:Server.userException/faultcode

faultstringjava.lang.reflect.InvocationTargetException/faultstring
 detail
 ns1:hostname
xmlns:ns1="http://xml.apache.org/axis/"avisortech02/ns1:hostname
 /detail
 /soapenv:Fault
 /soapenv:Body
 /soapenv:Envelope

In the tomcat console no show me nothing. I have this client for
consume the web service secure with the ibm jars

public class StubClient {
 private static String PSEURL =
"https://desarrollo.pse.com.co/psewebservices/mainservices.asmx"
; 
 public StubClient() {
  try{
   initProviders(); 
  } catch(Exception e){
   e.printStackTrace();
  }  
 }

 private static void initProviders() throws Exception
 {
 
System.setProperty("javax.net.ssl.trustStore","E:\\key\\AvisortechOfic.db");
 
System.setProperty("javax.net.ssl.keyStorePassword","pkalmacen");
 
System.setProperty("java.protocol.handler.pkgs","com.sun.net.ssl.internal.www.protocol");
  
  Provider[] providers = Security.getProviders();
  for(int i=0;iproviders.length;i++)
   System.out.println(i+" -
"+providers[i].getClass().toString());
  Object fact = SSLSocketFactory.getDefault();
  System.out.println("Default provider =
"+fact.getClass().toString());
  
  if(!fact.getClass().toString().equals("class
com.sun.net.ssl.internal.ssl.SSLSocketFactoryImpl") )
   throw new Exception("SSL no disponble");
 }
 
 public ArrayOfGetBankListResponseType[]
getBankList(GetBankListRequestType request)
 {
  ArrayOfGetBankListResponseType[] bank = null;
  try
  {
   MainServicesImplLocator loc = new MainServicesImplLocator();
   MainServicesImplSoapStub cli =
(MainServicesImplSoapStub)loc.getMainServicesImplSoap( new URL(PSEURL)
);  
   MessageHeader header = new MessageHeader();
   header.setTo("to 123");
   header.setFrom("from 123");
   header.setRepresentingParty("repr 123");   
   cli.setMessageHeader( header );
   GetbankListInformationType gbl_request=new
GetbankListInformationType();
   gbl_request.setEntityCode("98658");
   GetBankListResponseInformationType[]
gbl_response=cli.getBankList(gbl_request);
   bank = new
ArrayOfGetBankListResponseType[gbl_response.length];
   for(int i=0; igbl_response.length;i++)
   {
bank[i] = new ArrayOfGetBankListResponseType();
   
bank[i].setFinancialInstitutionCode(gbl_response[i].getFinancialInstitutionCode());
   
bank[i].setFinancialInstitutionName(gbl_response[i].getFinancialInstitutionName());
System.out.println("
BankID="+gbl_response[i].getFinancialInstitutionCode()+"
BankName="+gbl_response[i].getFinancialInstitutionName());
   }
   
   header = cli.getMessageHeader();
   System.out.println("GetBankList called");
   return bank;
  }
  catch (Exception e)
  {
   System.out.println(e.getMessage());
   return bank;
  }
 }
}

In the red line stop when I done the debug with eclipse and in this
line show me the message java.lang.reflect.InvocationTargetException
and stop teh process..but I run the
client as
JavaAplication and I can consume the service.

any idea..

Thanks.


Nicols G. Rico



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

  
  
  
  
  
-- 
Cyrille Le Clerc
  [EMAIL PROTECTED]
  [EMAIL PROTECTED]
  
+33 6.61.33.69.86
  

No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.394 / Virus Database: 268.8.3/362 - Release Date: 12/06/2006
  

Hi Cyrille, this is the problem.ja,ja,ja,ja,ja,ja, I haven't any
logs, well alone I've got a tomcat log but no has the trace when
happend the exception. is very stranger.. for example this is
the log of today.

2006-06-13 09:26:20
StandardContext[/balancer]org.apache.webapp.balancer.BalancerFilter:
init(): ruleChain: [org.apache.webapp.balancer.RuleChain:
[org.apache.webapp.balancer.rules.URLStringMatchRule: Target string:
News / Redirect URL: http://www.cnn.com],
[org.apache.webapp.balancer.rules.RequestParameterRule: Target param
name: paramName / Target param value: paramValue / Redirect URL:
http://www.yahoo.com],
[org.apache.webapp.balancer.rules.AcceptEveryth

Error Axis Server

2006-06-12 Thread Nicolas Guaneme




Hello All,

I have a service and when I try to invoke a method of this service show
me this message.

soap_parser: adding data for scalar value stackTrace of value Server Error
	at org.apache.axis.handlers.soap.SOAPService.invoke(SOAPService.java:474)
	at org.apache.axis.server.AxisServer.invoke(AxisServer.java:281)
	at org.apache.axis.transport.http.AxisServlet.doPost(AxisServlet.java:699)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
	at org.apache.axis.transport.http.AxisServletBase.service(AxisServletBase.java:327)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
	at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
	at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
	at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
	at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
	at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
	at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
	at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
	at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
	at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
	at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
	at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
	at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
	at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
	at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
	at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)

but with other methos of this service work it.

Help please.

Thanks.

Nicols G. Rico
	at java.lang.Thread.run(Thread.java:536)





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



Re: Customizing SOAP messages

2006-06-08 Thread Nicolas Guaneme




Phani Sekhar wrote:

  Hi chinthaka,
Thanks for ur response.
I have installed tcpmon. I am able to see the http messages(when I open a
website) using that
But i am not able to see the soap messages, when I try to invoke a soap
service using a soap client
Is there any extra configuration we need to do for tcpmon or the
client/server to see the soap messages on tcpmon???

I don't know hw to embed netconf msgs inside the soap body. It would be
of great help if u can send me some examples or links.

Thx
Sekhar



-Original Message-
From: Eran Chinthaka [mailto:[EMAIL PROTECTED]]
Sent: Thursday, June 08, 2006 8:28 PM
To: axis-user@ws.apache.org
Subject: Re: Customizing SOAP messages

Phani Sekhar wrote:
  
  
Hi,

I am new to Apache Axis, infact I am new to webservices.

Our aim is to send netconf messages over soap.

Can anyone please tell me how to customize the soap messages so that I
can embed the netconf messages inside the soap body

  
  
U can send anything inside the body of your SOAP message.

  
  
I didn't find any useful info in the internet. Please send me some

  
  examples.
  
  
I also tried to configure the tcpmon to see the soap

  
  requests/responses.
  
  
But I am not successful in setting it up.

  
  
Did u check this :
http://ws.apache.org/commons/tcpmon/tcpmontutorial.html

-- Chinthaka

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




  

Hello, you must config the port on the tcp-mon, for example port
listening  an when you run the client set the port  and the
tcp-mon show the message xml send and reciver.

Nicols G. Rico




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



Re: newbie question on deployment

2006-06-06 Thread Nicolas Guaneme




Taylor, Clarence B wrote:

  
  
  I
have been struggling with using java2wsdl, wsdl2java, admin deploy.wsdd
as described in the users guide to get a simple test web service
deployed and keep running into a wall. I have eclipse, running tomcat
under windows. I have tomcat installed in c:\tomcat and axis installed
in c:\axis\axis-1_4. 
  
  I
have used axis\axis-1_4\samples\userguide\example6 as a seed for my
test. I successfully am able to deploy example6 but not my new test,
bradexample. I can run java2wsdl, followed by wsdl2java, followed by
the admin client. However I never see the generated java source get
compiled into .class files. When I attempt to use the web browser to
"list" deployed java services, it complains that it can not find the
class files. I did not see anything in the doc about compiling the
java source generated from wsdl2java. When I try to do it manually I
get a java compiler error about not being able find symbol. I believe
the example6 deploys correctly because the class files are in the
tomcat/.../webapps/axisdirectory. 
  
  So
I guess the question where the .class files come from thatcorrespond
to the generated .java files from the wsdl2java process. Do I need to
manually compile, then copy? Or is this supposed to be automatic?
  
  Brad Taylor
  Senior Software Engineer
  Workload Automation
  
  713 625 9490 (ext 11940)
  
  

No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.394 / Virus Database: 268.8.2/357 - Release Date: 06/06/2006
  


Hello Taylor

this script can help you for to do the service-stub. cliente, deploy
and undeploy
project name="Service"
 property name="axis.home" value="C:/axis-1_3" /
 property name="javamail.home" value="C:/javamail-1.4ea" /
 property name="jaf.home" value="C:/jaf-1.0.2" /
 path id="axis.classpath" 
  fileset dir="lib"
include name="**/*.jar"/
  /fileset
  fileset dir="C:/javamail-1.4ea/lib"
include name="**/*.jar"/
  /fileset
  fileset dir="C:/jaf-1.0.2"
include name="**/*.jar"/
  /fileset
 /path 
 taskdef resource="axis-tasks.properties"
classpathref="axis.classpath" /
 target name="generate-service-stub"
  axis-wsdl2java serverside="true"
url=""
   mapping namespace="http://Service"
package="example"/
  /axis-wsdl2java 
 /target
 target name="deploy"
  axis-admin
url="" class="moz-txt-link-rfc2396E" href="http://localhost:8080/axis/servlet/AxisServlet">"http://localhost:8080/axis/servlet/AxisServlet"
  xmlfile="deploy.wsdd" /
 /target
 target name="undeploy"
   axis-admin
url="" class="moz-txt-link-rfc2396E" href="http://localhost:8080/axis/servlet/AxisServlet">"http://localhost:8080/axis/servlet/AxisServlet"
   xmlfile="undeploy.wsdd" /
 /target
 target name="generate-client-stub"
 axis-wsdl2java url=""
  mapping namespace="http://service"
  package="example"/
 /axis-wsdl2java
 /target
/project

when you run the generate-servicestub on eclipse show the java
generate after you run the deploy and the axis server show the
service copy the class on Axis/web-inf/classes/.




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



Re: Error invoking Web Service from a Java client

2006-05-31 Thread Nicolas Guaneme




Harish Hirasave wrote:

  
  
  
  
  
  Hi,
  
  I
am
getting the error below when I invoke my webservice from a java client
using
both axis-1.2 and axis-1.3. Please help.
  
  Thanks
  Harish
  
  AxisFault
  faultCode:
{http://schemas.xmlsoap.org/soap/envelope/}Server.userException
  faultSubcode:
  
  faultString:
org.xml.sax.SAXParseException: The root element is required in a
well-formed
document.
  faultActor:
  
  faultNode:
  
  faultDetail:
  
  
{http://xml.apache.org/axis/}stackTrace:org.xml.sax.SAXParseException:
The root element is required in a well-formed document.
  
at
org.apache.xerces.framework.XMLParser.reportError(XMLParser.java:1213)
  
at
org.apache.xerces.framework.XMLDocumentScanner.reportFatalXMLError(XMLDocumentScanner.java:570)
  
at
org.apache.xerces.framework.XMLDocumentScanner$XMLDeclDispatcher.endOfInput(XMLDocumentScanner.java:790)
  
at
org.apache.xerces.framework.XMLDocumentScanner.endOfInput(XMLDocumentScanner.java:418)
  
at
org.apache.xerces.validators.common.XMLValidator.sendEndOfInputNotifications(XMLValidator.java:712)
  
at
org.apache.xerces.readers.DefaultEntityHandler.changeReaders(DefaultEntityHandler.java:1031)
  
at
org.apache.xerces.readers.XMLEntityReader.changeReaders(XMLEntityReader.java:168)
  
at
org.apache.xerces.readers.AbstractCharReader.changeReaders(AbstractCharReader.java:150)
  
at
org.apache.xerces.readers.AbstractCharReader.lookingAtChar(AbstractCharReader.java:217)
  
at
org.apache.xerces.framework.XMLDocumentScanner$XMLDeclDispatcher.dispatch(XMLDocumentScanner.java:686)
  
at
org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentScanner.java:381)
  
at
org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1098)
  
at
javax.xml.parsers.SAXParser.parse(Unknown Source)
  
at
org.apache.axis.encoding.DeserializationContext.parse(DeserializationContext.java:227)
  
at
org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:696)
  
at
org.apache.axis.Message.getSOAPEnvelope(Message.java:435)
  
at
org.apache.axis.handlers.soap.MustUnderstandChecker.invoke(MustUnderstandChecker.java:62)
  
at
org.apache.axis.client.AxisClient.invoke(AxisClient.java:206)
  
at
org.apache.axis.client.Call.invokeEngine(Call.java:2784)
  
at
org.apache.axis.client.Call.invoke(Call.java:2767)
  
at
org.apache.axis.client.Call.invoke(Call.java:2443)
  
at
org.apache.axis.client.Call.invoke(Call.java:2366)
  
at org.apache.axis.client.Call.invoke(Call.java:1812)
  
at
com.rrt.sprintpcs.webservices.stubs.SpcswsSoapBindingStub.getSprintPCSWebServicesVO(SpcswsSoapBindingStub.java:166)
  
at
com.rrt.sprintpcs.webservices.client.SprintPCSWebServicesClient.main(SprintPCSWebServicesClient.java:61)
  
  
{http://xml.apache.org/axis/}hostname:harish
  
  org.xml.sax.SAXParseException:
The
root element is required in a well-formed document.
  
at
org.apache.axis.AxisFault.makeFault(AxisFault.java:101)
  
at
org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:701)
  
at
org.apache.axis.Message.getSOAPEnvelope(Message.java:435)
  
at
org.apache.axis.handlers.soap.MustUnderstandChecker.invoke(MustUnderstandChecker.java:62)
  
at
org.apache.axis.client.AxisClient.invoke(AxisClient.java:206)
  
at
org.apache.axis.client.Call.invokeEngine(Call.java:2784)
  
at
org.apache.axis.client.Call.invoke(Call.java:2767)
  
at
org.apache.axis.client.Call.invoke(Call.java:2443)
  
at
org.apache.axis.client.Call.invoke(Call.java:2366)
  
at
org.apache.axis.client.Call.invoke(Call.java:1812)
  
at
com.rrt.sprintpcs.webservices.stubs.SpcswsSoapBindingStub.getSprintPCSWebServicesVO(SpcswsSoapBindingStub.java:166)
  
at
com.rrt.sprintpcs.webservices.client.SprintPCSWebServicesClient.main(SprintPCSWebServicesClient.java:61)
  Caused
by:
org.xml.sax.SAXParseException: The root element is required in a
well-formed
document.
  
at
org.apache.xerces.framework.XMLParser.reportError(XMLParser.java:1213)
  
at
org.apache.xerces.framework.XMLDocumentScanner.reportFatalXMLError(XMLDocumentScanner.java:570)
  
at
org.apache.xerces.framework.XMLDocumentScanner$XMLDeclDispatcher.endOfInput(XMLDocumentScanner.java:790)
  
at
org.apache.xerces.framework.XMLDocumentScanner.endOfInput(XMLDocumentScanner.java:418)
  
at
org.apache.xerces.validators.common.XMLValidator.sendEndOfInputNotifications(XMLValidator.java:712)
  
at
org.apache.xerces.readers.DefaultEntityHandler.changeReaders(DefaultEntityHandler.java:1031)
  
at
org.apache.xerces.readers.XMLEntityReader.changeReaders(XMLEntityReader.java:168)
  
at
org.apache.xerces.readers.AbstractCharReader.changeReaders(AbstractCharReader.java:150)
  
at
org.apache.xerces.readers.AbstractCharReader.lookingAtChar(AbstractCharReader.java:217)
  
at
org.apache.xerces.framework.XMLDocumentScanner$XMLDeclDispatcher.dispatch(XMLDocumentScanner.java:686)
  
at
org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentScanner.java:381)
  
at
org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1098)
  
at

Problem Return XML - Axis Server......

2006-05-23 Thread Nicolas Guaneme

Hello, I have this WSDL
?xml version=1.0 encoding=UTF-8?
wsdl:definitions xmlns:soap=http://schemas.xmlsoap.org/wsdl/soap/; 
xmlns:tns=http://co.com.www.avisortech/MPPWebServices/; 
xmlns:wsdl=http://schemas.xmlsoap.org/wsdl/; 
xmlns:xsd=http://www.w3.org/2001/XMLSchema; name=MPPWebServices 
targetNamespace=http://co.com.www.avisortech/MPPWebServices/;

wsdl:types
xsd:schema targetNamespace=http://co.com.www.avisortech/MPPWebServices/;
xsd:element name=createTransactionPaymentResponse 
type=tns:createTransactionPaymentResponseType/
xsd:element name=createTransactionPaymentRequest 
type=tns:createTransactionPaymentRequestType/

   xsd:complexType name=createTransactionPaymentRequestType
   xsd:sequence
   xsd:element name=EntityCode type=xsd:string 
minOccurs=0 maxOccurs=1/xsd:element
   xsd:element name=TicketId type=xsd:string minOccurs=0 
maxOccurs=1/xsd:element
   xsd:element name=SrvCode type=xsd:string minOccurs=0 
maxOccurs=1/xsd:element
   xsd:element name=PaymentDesc type=xsd:string 
minOccurs=0 maxOccurs=1/xsd:element
   xsd:element name=TransValue type=xsd:decimal 
minOccurs=0 maxOccurs=1/xsd:element
   xsd:element name=TransVatValue type=xsd:decimal 
minOccurs=0 maxOccurs=1/xsd:element
   xsd:element name=UserType type=xsd:string minOccurs=0 
maxOccurs=1/xsd:element
   xsd:element name=Reference1 type=xsd:string 
minOccurs=0 maxOccurs=1/xsd:element
   xsd:element name=Reference2 type=xsd:string 
minOccurs=0 maxOccurs=1/xsd:element
   xsd:element name=Reference3 type=xsd:string 
minOccurs=0 maxOccurs=1/xsd:element
   xsd:element name=PaymentSystem type=xsd:string 
minOccurs=0 maxOccurs=1/xsd:element
   xsd:element name=URLResponse type=xsd:string 
minOccurs=0 maxOccurs=1/xsd:element
   xsd:element name=FICode type=xsd:string minOccurs=0 
maxOccurs=1/xsd:element

   /xsd:sequence
   /xsd:complexType

   xsd:complexType name=createTransactionPaymentResponseType
   xsd:sequence
   xsd:element name=ReturnCode type=xsd:string 
minOccurs=0 maxOccurs=1/xsd:element
   xsd:element name=Url type=xsd:string minOccurs=0 
maxOccurs=1/xsd:element

   /xsd:sequence
   /xsd:complexType

/xsd:schema
/wsdl:types
wsdl:message name=createTransactionPaymentResponse
wsdl:part element=tns:createTransactionPaymentResponse 
name=createTransactionPaymentResponse/

/wsdl:message
wsdl:message name=createTransactionPaymentRequest
wsdl:part element=tns:createTransactionPaymentRequest 
name=createTransactionPaymentRequest/

/wsdl:message
wsdl:portType name=MPPWebServices
wsdl:operation name=createTransactionPayment
wsdl:input message=tns:createTransactionPaymentRequest/
wsdl:output message=tns:createTransactionPaymentResponse/
/wsdl:operation
/wsdl:portType
wsdl:binding name=MPPWebServicesSOAP type=tns:MPPWebServices
soap:binding style=document 
transport=http://schemas.xmlsoap.org/soap/http/

wsdl:operation name=createTransactionPayment
soap:operation 
soapAction=http://co.com.www.avisortech/MPPWebServices/createTransactionPayment/

wsdl:input
soap:body use=literal/
/wsdl:input
wsdl:output
soap:body use=literal/
/wsdl:output
/wsdl:operation
/wsdl:binding
wsdl:service name=MPPWebServices
wsdl:port binding=tns:MPPWebServicesSOAP name=MPPWebServicesSOAP
soap:address 
location=http://localhost:8080/axis/services/MPPWebServicesSOAP/

/wsdl:port
/wsdl:service
/wsdl:definitions

I create the service-stub, I done the deploy and this service is it on 
the Axis Server and show me the WSDL when I enter by firefox, I have 
this class for to do the return of the method.


public class MPPWebServicesSOAPImpl implements 
avisortech.www.com.co.MPPWebServices.MPPWebServices_Port{
   public 
avisortech.www.com.co.MPPWebServices.CreateTransactionPaymentResponseType 
createTransactionPayment(avisortech.www.com.co.MPPWebServices.CreateTransactionPaymentRequestType 
createTransactionPaymentRequest) throws java.rmi.RemoteException {
   CreateTransactionPaymentResponseType req = new 
CreateTransactionPaymentResponseType();

   req.setReturnCode(SUCCESS);
   req.setUrl(http://localhost;;);
   return req;
   }
}

when I try to consume this service in PHP or .NET and not can show me 
the result when I look the TCP-Mon the message (XML) in PHP for 
example is ok.. but when Axis return the XML show me this message..


HTTP/1.1 500 Error Interno del Servidor
Content-Type: text/xml;charset=iso-8859-1
Date: Tue, 23 May 2006 13:49:32 GMT
Server: Apache-Coyote/1.1
Connection: close

?xml version=1.0 encoding=ISO-8859-1?
  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
soapenv:Fault
   faultcodesoapenv:Server.userException/faultcode
   faultstringjava.lang.Exception: Body not found./faultstring
   detail
   

Help me with Axis

2006-05-19 Thread Nicolas Guaneme

Hello All,



I have this WSDL service



?xml version=1.0 encoding=UTF-8?

wsdl:definitions xmlns:soap=http://schemas.xmlsoap.org/wsdl/soap/;

  xmlns:tns=http://co.com.www.avisortech/MPPWebServices/;

  xmlns:wsdl=http://schemas.xmlsoap.org/wsdl/;

  xmlns:xsd=http://www.w3.org/2001/XMLSchema; name=MPPWebServices

  targetNamespace=http://co.com.www.avisortech/MPPWebServices/;

  wsdl:types

  xsd:schema

  targetNamespace=http://co.com.www.avisortech/MPPWebServices/;

  xsd:element name=getBankListRequest

  xsd:complexType

  xsd:sequence

  xsd:element name=EntityCode type=xsd:string

  minOccurs=0 maxOccurs=1

  /xsd:element

  /xsd:sequence

  /xsd:complexType

  /xsd:element

  xsd:complexType name=ArrayOfGetBankList

  xsd:sequence

  xsd:element name=financialInstitutionCode

  type=xsd:string minOccurs=0 maxOccurs=1

  /xsd:element

  xsd:element name=financialInstitutionName

  type=xsd:string minOccurs=0 maxOccurs=1

  /xsd:element

  /xsd:sequence

  /xsd:complexType



  xsd:element name=getBabkListResponse

  type=tns:ArrayOfGetBankList

  /xsd:element



  xsd:complexType name=getBankListResponseType

  xsd:sequence

  xsd:element 
ref=tns:getBabkListResponse/xsd:element


  /xsd:sequence

  /xsd:complexType



  xsd:complexType name=getBankListRequestType

  xsd:sequence

  xsd:element ref=tns:getBankListRequest/xsd:element

  /xsd:sequence

  /xsd:complexType



  xsd:element name=createTransactionPaymentResponse

  xsd:complexType

  xsd:sequence

  xsd:element name=createResponse

  type=tns:createTransactionPaymentResponseType

  /xsd:element

  /xsd:sequence

  /xsd:complexType

  /xsd:element

  xsd:element name=createTransactionPaymentRequest

  xsd:complexType

  xsd:sequence

  xsd:element name=createRequest

  type=tns:createTransactionPaymentRequestType

  /xsd:element

  /xsd:sequence

  /xsd:complexType

  /xsd:element

  xsd:complexType

  name=createTransactionPaymentRequestType

  xsd:sequence

  xsd:element name=EntityCode type=xsd:string

  minOccurs=0 maxOccurs=1

  /xsd:element

  xsd:element name=TicketId type=xsd:string

  minOccurs=0 maxOccurs=1

  /xsd:element

  xsd:element name=SrvCode type=xsd:string

  minOccurs=0 maxOccurs=1

  /xsd:element

  xsd:element name=PaymentDesc type=xsd:string

  minOccurs=0 maxOccurs=1

  /xsd:element

  xsd:element name=TransValue type=xsd:decimal

  minOccurs=0 maxOccurs=1

  /xsd:element

  xsd:element name=TransVatValue type=xsd:decimal

  minOccurs=0 maxOccurs=1

  /xsd:element

  xsd:element name=UserType type=xsd:string

  minOccurs=0 maxOccurs=1

  /xsd:element

  xsd:element name=Reference1 type=xsd:string

  minOccurs=0 maxOccurs=1

  /xsd:element

  xsd:element name=Reference2 type=xsd:string

  minOccurs=0 maxOccurs=1

  /xsd:element

  xsd:element name=Reference3 type=xsd:string

  minOccurs=0 maxOccurs=1

  /xsd:element

  xsd:element name=PaymentSystem type=xsd:string

  minOccurs=0 maxOccurs=1

  /xsd:element

  xsd:element name=URLResponse type=xsd:string

  minOccurs=0 maxOccurs=1

  /xsd:element

  xsd:element name=FICode type=xsd:string

  minOccurs=0 maxOccurs=1

  /xsd:element

  /xsd:sequence

  /xsd:complexType



  xsd:complexType

  name=createTransactionPaymentResponseType

  xsd:sequence

  xsd:element name=ReturnCode type=xsd:string

  minOccurs=0 maxOccurs=1

  /xsd:element

  xsd:element name=Url type=xsd:string

  minOccurs=0 maxOccurs=1

  /xsd:element

   

Help Me!!

2006-05-19 Thread Nicolas Guaneme

Hello All,

I have this WSDL service

?xml version=1.0 encoding=UTF-8?
wsdl:definitions xmlns:soap=http://schemas.xmlsoap.org/wsdl/soap/;
   xmlns:tns=http://co.com.www.avisortech/MPPWebServices/;
   xmlns:wsdl=http://schemas.xmlsoap.org/wsdl/;
   xmlns:xsd=http://www.w3.org/2001/XMLSchema; name=MPPWebServices
   targetNamespace=http://co.com.www.avisortech/MPPWebServices/;
   wsdl:types
   xsd:schema
   targetNamespace=http://co.com.www.avisortech/MPPWebServices/;
   xsd:element name=getBankListRequest
   xsd:complexType
   xsd:sequence
   xsd:element name=EntityCode type=xsd:string
   minOccurs=0 maxOccurs=1
   /xsd:element
   /xsd:sequence
   /xsd:complexType
   /xsd:element
   xsd:complexType name=ArrayOfGetBankList
   xsd:sequence
   xsd:element name=financialInstitutionCode
   type=xsd:string minOccurs=0 maxOccurs=1
   /xsd:element
   xsd:element name=financialInstitutionName
   type=xsd:string minOccurs=0 maxOccurs=1
   /xsd:element
   /xsd:sequence
   /xsd:complexType

   xsd:element name=getBabkListResponse
   type=tns:ArrayOfGetBankList
   /xsd:element

   xsd:complexType name=getBankListResponseType
   xsd:sequence
   xsd:element 
ref=tns:getBabkListResponse/xsd:element

   /xsd:sequence
   /xsd:complexType

   xsd:complexType name=getBankListRequestType
   xsd:sequence
   xsd:element ref=tns:getBankListRequest/xsd:element
   /xsd:sequence
   /xsd:complexType

   xsd:element name=createTransactionPaymentResponse
   xsd:complexType
   xsd:sequence
   xsd:element name=createResponse
   type=tns:createTransactionPaymentResponseType
   /xsd:element
   /xsd:sequence
   /xsd:complexType
   /xsd:element
   xsd:element name=createTransactionPaymentRequest
   xsd:complexType
   xsd:sequence
   xsd:element name=createRequest
   type=tns:createTransactionPaymentRequestType
   /xsd:element
   /xsd:sequence
   /xsd:complexType
   /xsd:element
   xsd:complexType
   name=createTransactionPaymentRequestType
   xsd:sequence
   xsd:element name=EntityCode type=xsd:string
   minOccurs=0 maxOccurs=1
   /xsd:element
   xsd:element name=TicketId type=xsd:string
   minOccurs=0 maxOccurs=1
   /xsd:element
   xsd:element name=SrvCode type=xsd:string
   minOccurs=0 maxOccurs=1
   /xsd:element
   xsd:element name=PaymentDesc type=xsd:string
   minOccurs=0 maxOccurs=1
   /xsd:element
   xsd:element name=TransValue type=xsd:decimal
   minOccurs=0 maxOccurs=1
   /xsd:element
   xsd:element name=TransVatValue type=xsd:decimal
   minOccurs=0 maxOccurs=1
   /xsd:element
   xsd:element name=UserType type=xsd:string
   minOccurs=0 maxOccurs=1
   /xsd:element
   xsd:element name=Reference1 type=xsd:string
   minOccurs=0 maxOccurs=1
   /xsd:element
   xsd:element name=Reference2 type=xsd:string
   minOccurs=0 maxOccurs=1
   /xsd:element
   xsd:element name=Reference3 type=xsd:string
   minOccurs=0 maxOccurs=1
   /xsd:element
   xsd:element name=PaymentSystem type=xsd:string
   minOccurs=0 maxOccurs=1
   /xsd:element
   xsd:element name=URLResponse type=xsd:string
   minOccurs=0 maxOccurs=1
   /xsd:element
   xsd:element name=FICode type=xsd:string
   minOccurs=0 maxOccurs=1
   /xsd:element
   /xsd:sequence
   /xsd:complexType

   xsd:complexType
   name=createTransactionPaymentResponseType
   xsd:sequence
   xsd:element name=ReturnCode type=xsd:string
   minOccurs=0 maxOccurs=1
   /xsd:element
   xsd:element name=Url type=xsd:string
   minOccurs=0 maxOccurs=1
   /xsd:element
   

Help Me.

2006-05-18 Thread Nicolas Guaneme
Hello, I have a Web Service... I done the deply on the Axis Serser 
when I try to do debug to my serviceI set teh breackpoint in the 
SOAPImpl after the method  run the next step an always return to 
the before line and I can't continue with the debug because no find 
every class of axis.


All jars is it in my app and the server..

For example:

public class MPPWebServicesSOAPImpl implements 
avisortech.www.com.co.MPPWebServices.MPPWebServices_Port{


this is teh declaration of my class, when run the debug stop in the 
breackpoint. ok but when I keypress the next step return to the 
definition of de class and find classess the axis but never find 
it.


What do I do?

Thanks.


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



Help me!!

2006-05-18 Thread Nicolas Guaneme
Hello, I have a Web Service... I done the deply on the Axis Serser 
when I try to do debug to my serviceI set teh breackpoint in the 
SOAPImpl after the method  run the next step an always return to 
the before line and I can't continue with the debug because no find 
every class of axis.


All jars is it in my app and the server..

For example:

public class MPPWebServicesSOAPImpl implements 
avisortech.www.com.co.MPPWebServices.MPPWebServices_Port{


this is teh declaration of my class, when run the debug stop in the 
breackpoint. ok but when I keypress the next step return to the 
definition of de class and find classess the axis but never find 
it.


What do I do?

Thanks.


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



Re: Strange Codegen for RPC

2006-05-11 Thread Nicolas Guaneme




I have a wsdl when I done the delpy show me the service, but I try to
access to url?WSDL show me this error:
AXIS error
Sorry, something seems to have gone wrong... here are the details:
Fault - makeTypeElement() was told to create a type "{http://co.com.www.avisortech/MPPWebServices/}getBankListRequest", with no containing element

AxisFault
 faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.generalException
 faultSubcode: 
 faultString: makeTypeElement() was told to create a type "{http://co.com.www.avisortech/MPPWebServices/}getBankListRequest", with no containing element
 faultActor: 
 faultNode: 
 faultDetail: 
	{http://xml.apache.org/axis/}hostname:avisortech02

but in the wsdl the getBankList has the element for this method.
What do I do?

Thanks.