Re: axis-c ant build error

2005-05-24 Thread Simon Detheridge
I have cpptasks 1.0b3, ant-contrib 1.0b2, and ant 1.6.2

On Mon, 2005-05-23 at 16:39 +0100, Adrian Dick wrote:
 Hmmm  well it looks to have correctly detected your platform, so
 there's something else going on here.
 
 I'll need to dig around some more, in the interim could you confirm the
 exact levels of cpptasks you're using - I've seen problems in the past with
 anything other than v1.0beta3
 
 Thanks,
 Adrian
 ___
 Adrian Dick ([EMAIL PROTECTED])
 
 
 Simon Detheridge [EMAIL PROTECTED] wrote on 23/05/2005 16:15:05:
 
  Hmm... It does say: Detected OS: Linux but I know nothing of ant, so I
  don't know if this is relevant.
 
  I've posted the complete output here (21):
  http://www.highlyillogical.org/dump/antbuild.out
 
  It's rather long and I don't want to pollute the list.
 
  Simon
 
  On Mon, 2005-05-23 at 15:54 +0100, Adrian Dick wrote:
   Hi,
  
   This sounds worryingly like the ant script hasn't correctly determined
 your
   platform.
  
   Could try running ant in verbose mode, and attach the produced output,
 so
   we determine which check is failing.
$ cd ~/ws-axis/c
$ ant -v
  
   Thanks,
   Adrian
   ___
   Adrian Dick ([EMAIL PROTECTED])
  
  
   Simon Detheridge [EMAIL PROTECTED] wrote on 23/05/2005 10:42:32:
  
I'm building on Linux. Gentoo to be precise...
   
The full command I'm using, is simply:
$ cd ~/ws-axis/c
$ ant
   
   
On Mon, 2005-05-23 at 08:14 +0100, John Hawkins wrote:

 What platform are you trying to build on?

 It looks like the SolarisLinker is not defined before you are
 calling buildClient.xml . If I look in buildInitialize.xml then it
 appears to be defined in there.

 linkerid=SolarisLinkername=CClibtool=trueif=solaris
 linkerargvalue=-gif=debug/
 linkerargvalue=-Qoption/
 linkerargvalue=ld/
 linkerargvalue=-zmuldefs/
 /linker

 We need to make sure that you are picking up this file before you
 call
 buildClient.xml

 What is the full command that you are using to build with please?






 Simon Detheridge
 [EMAIL PROTECTED]

 20/05/2005 16:29
  Please respond to
  Apache AXIS C User List




To
 axis-c-user@ws.apache.org
cc

   Subject
 axis-c ant build
 error








 I'm getting the following, when trying to build axis-c using ant:

 ...

 compileAxisClient:

 buildVersionResource:

 BUILD FAILED
 /root/axis-install/ws-axis/c/build.xml:234: The following error
 occurred
 while executing this line:
 /root/axis-install/ws-axis/c/build.xml:222: The following error
 occurred
 while executing this line:
 /root/axis-install/ws-axis/c/build.xml:93: The following error
 occurred
 while executing this line:
 /root/axis-install/ws-axis/c/build/buildClient.xml:23:
 SolarisLinker
 doesn't denote a ProcessorDef

 ---

 Any idea why, and how I can make it go away?

 Thanks,
 Simon



   
   
 
 




java client/c++ server problem

2005-05-24 Thread a . eriksson
Hi everyboy,

I have installed axis c++ 1.4 (with apache 1.3.31, using
xerces-c_2_2_0.dll) and have created a service. The service works
excelent with my axis c++ client. However when I try to use an axis java
client my server fails to deserialize the incomming message.

The java client reports the following error message:
***
erreur ! Unknown Wsdd Exception
AxisFault
 faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server
 faultSubcode:
 faultString: Unknown Wsdd Exception
 faultActor: server name:listen port
 faultNode:
 faultDetail:
{http://xml.apache.org/axis/}stackTrace:AxisFault
 faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server
 faultSubcode:
 faultString: Unknown Wsdd Exception
 faultActor: server name:listen port
 faultNode:
 faultDetail:

Unknown Wsdd Exception
at
org.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder.java:223)
at
org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.java:130)
at
org.apache.axis.encoding.DeserializationContextImpl.endElement(DeserializationContextImpl.java:1053)
at org.apache.crimson.parser.Parser2.maybeElement(Unknown Source)
at org.apache.crimson.parser.Parser2.content(Unknown Source) at
org.apache.crimson.parser.Parser2.maybeElement(Unknown Source) at
org.apache.crimson.parser.Parser2.content(Unknown Source) at
org.apache.crimson.parser.Parser2.maybeElement(Unknown Source) at
org.apache.crimson.parser.Parser2.parseInternal(Unknown Source) at
org.apache.crimson.parser.Parser2.parse(Unknown Source) at
org.apache.crimson.parser.XMLReaderImpl.parse(Unknown Source) at
javax.xml.parsers.SAXParser.parse(Unknown Source)
at
org.apache.axis.encoding.DeserializationContextImpl.parse(DeserializationContextImpl.java:218)
at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:568)
at org.apache.axis.Message.getSOAPEnvelope(Message.java:427) at
org.apache.axis.transport.http.HTTPSender.readFromSocket(HTTPSender.java:701)
at
org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:93)
at
org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118) at
org.apache.axis.SimpleChain.invoke(SimpleChain.java:83) at
org.apache.axis.client.AxisClient.invoke(AxisClient.java:144) at
org.apache.axis.client.Call.invokeEngine(Call.java:2688) at
org.apache.axis.client.Call.invoke(Call.java:2671)
at org.apache.axis.client.Call.invoke(Call.java:2357)
at org.apache.axis.client.Call.invoke(Call.java:2280)
at org.apache.axis.client.Call.invoke(Call.java:1741)
at
myNameSpace.MyWebService.SoapBindingStub.myFunction(MyWebServiceSoapBindingStub.java:168)
at Test.main(Test.java:33)


Unknown Wsdd Exception
at
org.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder.java:223)
at
org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.java:130)
at
org.apache.axis.encoding.DeserializationContextImpl.endElement(DeserializationContextImpl.java:1053)
at org.apache.crimson.parser.Parser2.maybeElement(Unknown Source)
at org.apache.crimson.parser.Parser2.content(Unknown Source) at
org.apache.crimson.parser.Parser2.maybeElement(Unknown Source) at
org.apache.crimson.parser.Parser2.content(Unknown Source) at
org.apache.crimson.parser.Parser2.maybeElement(Unknown Source) at
org.apache.crimson.parser.Parser2.parseInternal(Unknown Source) at
org.apache.crimson.parser.Parser2.parse(Unknown Source) at
org.apache.crimson.parser.XMLReaderImpl.parse(Unknown Source) at
javax.xml.parsers.SAXParser.parse(Unknown Source)
at
org.apache.axis.encoding.DeserializationContextImpl.parse(DeserializationContextImpl.java:218)
at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:568)
at org.apache.axis.Message.getSOAPEnvelope(Message.java:427) at
org.apache.axis.transport.http.HTTPSender.readFromSocket(HTTPSender.java:701)
at
org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:93)
at
org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118) at
org.apache.axis.SimpleChain.invoke(SimpleChain.java:83) at
org.apache.axis.client.AxisClient.invoke(AxisClient.java:144) at
org.apache.axis.client.Call.invokeEngine(Call.java:2688) at
org.apache.axis.client.Call.invoke(Call.java:2671)
at org.apache.axis.client.Call.invoke(Call.java:2357)
at org.apache.axis.client.Call.invoke(Call.java:2280)
at org.apache.axis.client.Call.invoke(Call.java:1741)
at
myNameSpace.MyWebService.SoapBindingStub.myFunction(MyWebServiceSoapBindingStub.java:168)
at Test.main(Test.java:33)


As I can see, the server returns an error code (-1) from this line
if (AXIS_SUCCESS != (nStatus = 

Re: axis-c ant build error

2005-05-24 Thread Adrian Dick
Hmmm ... this really doesn't make sense.

The ant script has correctly determined which platform it is on - yet, for
some reason, it is trying to do something with the SolarisLinker.   I have
tried changing my version of ant-contrib to match yours, but still don't
see the same problem.

Does everything work if we comment out line 39 from
ws-axis/c/build/buildClient.xml ?  or does the next linker definition fall
over?


Adrian
___
Adrian Dick ([EMAIL PROTECTED])


Simon Detheridge [EMAIL PROTECTED] wrote on 24/05/2005 09:37:16:

 I have cpptasks 1.0b3, ant-contrib 1.0b2, and ant 1.6.2

 On Mon, 2005-05-23 at 16:39 +0100, Adrian Dick wrote:
  Hmmm  well it looks to have correctly detected your platform, so
  there's something else going on here.
 
  I'll need to dig around some more, in the interim could you confirm the
  exact levels of cpptasks you're using - I've seen problems in the past
with
  anything other than v1.0beta3
 
  Thanks,
  Adrian
  ___
  Adrian Dick ([EMAIL PROTECTED])
 
 
  Simon Detheridge [EMAIL PROTECTED] wrote on 23/05/2005 16:15:05:
 
   Hmm... It does say: Detected OS: Linux but I know nothing of ant,
so I
   don't know if this is relevant.
  
   I've posted the complete output here (21):
   http://www.highlyillogical.org/dump/antbuild.out
  
   It's rather long and I don't want to pollute the list.
  
   Simon
  
   On Mon, 2005-05-23 at 15:54 +0100, Adrian Dick wrote:
Hi,
   
This sounds worryingly like the ant script hasn't correctly
determined
  your
platform.
   
Could try running ant in verbose mode, and attach the produced
output,
  so
we determine which check is failing.
 $ cd ~/ws-axis/c
 $ ant -v
   
Thanks,
Adrian
___
Adrian Dick ([EMAIL PROTECTED])
   
   
Simon Detheridge [EMAIL PROTECTED] wrote on 23/05/2005 10:42:32:
   
 I'm building on Linux. Gentoo to be precise...

 The full command I'm using, is simply:
 $ cd ~/ws-axis/c
 $ ant


 On Mon, 2005-05-23 at 08:14 +0100, John Hawkins wrote:
 
  What platform are you trying to build on?
 
  It looks like the SolarisLinker is not defined before you are
  calling buildClient.xml . If I look in buildInitialize.xml then
it
  appears to be defined in there.
 
  linkerid=SolarisLinkername=CClibtool=trueif=solaris
  linkerargvalue=-gif=debug/
  linkerargvalue=-Qoption/
  linkerargvalue=ld/
  linkerargvalue=-zmuldefs/
  /linker
 
  We need to make sure that you are picking up this file before
you
  call
  buildClient.xml
 
  What is the full command that you are using to build with
please?
 
 
 
 
 
 
  Simon Detheridge
  [EMAIL PROTECTED]
 
  20/05/2005 16:29
   Please respond to
   Apache AXIS C User List
 
 
 
 
 To
  axis-c-user@ws.apache.org
 cc
 
Subject
  axis-c ant build
  error
 
 
 
 
 
 
 
 
  I'm getting the following, when trying to build axis-c using
ant:
 
  ...
 
  compileAxisClient:
 
  buildVersionResource:
 
  BUILD FAILED
  /root/axis-install/ws-axis/c/build.xml:234: The following error
  occurred
  while executing this line:
  /root/axis-install/ws-axis/c/build.xml:222: The following error
  occurred
  while executing this line:
  /root/axis-install/ws-axis/c/build.xml:93: The following error
  occurred
  while executing this line:
  /root/axis-install/ws-axis/c/build/buildClient.xml:23:
  SolarisLinker
  doesn't denote a ProcessorDef
 
  ---
 
  Any idea why, and how I can make it go away?
 
  Thanks,
  Simon
 
 
 


  
  





RE: RE: Axis C++ SSL problem

2005-05-24 Thread Popa Horia
I have tried that way too. The problem is that in the Call.cpp things are 
hardcoded. 
Axis will always look into [AXISCPP_DEPLOY]\axiscpp.conf for the key 
Channel_HTTP_SSL. If it doesn't file that key you cannot use SSL. 
 

NOTE: 
AXISCPP_DEPLOY - environment variable
My axiscpp.conf: 
Channel_HTTP_SSL:C:\myprojects\axis-c-1-5-win32\bin\HTTPSSLChannel.dll




-Original Message-
From: huagang [mailto:[EMAIL PROTECTED] 
Sent: 24 mai 2005 03:51
To: Apache AXIS C User List
Subject: Re: RE: Axis C++ SSL problem

I guess you should use the other constructor,

StockQuoteService(const char* pchEndpointUri, AXIS_PROTOCOL_TYPE 
eProtocol=APTHTTP1_1);
  
-






 
 
  huagang
{/--\}  [EMAIL PROTECTED]
 ( (oo) )   2005-05-24

62125151-6226
  


=== 2005-05-23 20:35:04 ===

is anyone there who can give me a clue Please 

  _

From: Popa Horia [mailto:[EMAIL PROTECTED]
Sent: 23 mai 2005 10:37
To: 'axis-c-user@ws.apache.org'
Subject: RE: Axis C++ SSL problem


I have to mention that i have user Axis 1.5 and Axis 1.6 20 May nightly 
build 

  _

From: Popa Horia [mailto:[EMAIL PROTECTED]
Sent: 21 mai 2005 10:09
To: 'axis-c-user@ws.apache.org'
Subject: Axis C++ SSL problem


 
Hi there,
 
 
I have a Java Axis server and i'm trying to connect with a stub 
written in  C++. It works fine on http but it failes on https.
I see when I run the program in debug mode that the HttpSSLChannel is 
never loaded. The application failes at this line in the Stub: if 
(AXIS_SUCCESS !=
m_pCall-initialize(CPP_DOC_PROVIDER)) return pReturn;
My Tomcat server is behind Apache 1.3.1 and i'm using MOD_JK to 
make those applications talk to each other. My guess is that the 
request never leaves my client. To prove this I have used a network 
sniffer and indeed, the client dies before any request is sent to the 
server. Maybe I don't have all the DDLs ?? I have installed openssl 
The client runs on Windows.
 
 
Any help is appeciated.
 
 
thanks
 
 
 




AEROSPACEINFORMATIONCO., LTD.
 virus-free and secure email


= = = = = = = = = = = = = = = = = = = =





AEROSPACEINFORMATIONCO., LTD.
 virus-free and secure email 



web service exception causes crash - possible bug in WSDL2Ws?

2005-05-24 Thread Jamie

Hi everyone,

I am using the latest nightly build of Axis C++. My client application 
crashes when an exception is thrown from the server via Axis web 
services. The generated code (see below), attempts to delete memory 
pointed to by detail (fault point is marked below). The contents of 
detail at this point ishostnamejamie/hostname. Any ideas on how to 
fix this? From time to time, my server application throws exceptions.. 
in which case i'd like the client app to behave responsibly.


Thanks in advance for your help.

Jamie


Is this a bug in the code generated by WSDL2Ws?
/*
* This method wrap the service methodstoreMessage
*/
xsd__boolean TestApp::storeMessage(xsd__base64Binary Value0)
{
   xsd__boolean Ret = false_;
   const char* pcCmplxFaultName;
   pcCmplxFaultName = NULL;
   try
   {if (AXIS_SUCCESS != m_pCall-initialize(CPP_DOC_PROVIDER)) 
return Ret;

   if (NULL==m_pCall-getTransportProperty(SOAPAction,false))
   {
   m_pCall-setTransportProperty(SOAPACTION_HEADER , );
   }
   m_pCall-setSOAPVersion(SOAP_VER_1_1);
   m_pCall-setOperation(storeMessage, url:TestApp);
   includeSecure();
   applyUserPreferences();
   char cPrefixAndParamName0[13];
   sprintf( cPrefixAndParamName0, %s:in0, 
m_pCall-getNamespacePrefix(url:TestApp));
   m_pCall-addParameter((void*)Value0, cPrefixAndParamName0, 
XSD_BASE64BINARY);

   if (AXIS_SUCCESS == m_pCall-invoke())
   {
   if(AXIS_SUCCESS == m_pCall-checkMessage(storeMessageResponse, 
url:TestApp))

   {
   xsd__boolean * pReturn = 
m_pCall-getElementAsBoolean(storeMessageReturn, 0);

   if(pReturn)
   Ret = *pReturn;
   }
   }
   m_pCall-unInitialize();
   return Ret;
   }
   catch(AxisException e)
   {
   int iExceptionCode = e.getExceptionCode();

   if(AXISC_NODE_VALUE_MISMATCH_EXCEPTION != iExceptionCode)
   {
   m_pCall-unInitialize();
   throw;
   }

   ISoapFault* pSoapFault = (ISoapFault*)
   
m_pCall-checkFault(Fault,http://127.0.0.1:8080/TestApp/services/TestAppService; 
);


   if(pSoapFault)
   {
   const char *detail = pSoapFault-getSimpleFaultDetail();
   bool deleteDetail=false;

   if (NULL==detail || 0==strlen(detail))
   {
   detail=m_pCall-getFaultAsXMLString();
   if (NULL==detail)
   {
   detail=;
   }
   else
   {
   deleteDetail=true;
   }
   }

   OtherFaultException ofe(pSoapFault-getFaultcode(),
   pSoapFault-getFaultstring(), 
pSoapFault-getFaultactor(),

   detail, iExceptionCode);

   if (deleteDetail  NULL!=detail)
   {
delete [] const_castchar*(detail);  // 
!! CRASHES HERE 

   }

   m_pCall-unInitialize();
   delete pSoapFault;
   throw ofe;
   }
   else
   {
   m_pCall-unInitialize();
   delete pSoapFault;
   throw;
   }
   }
}


RE: Axis C++ SSL problem

2005-05-24 Thread Popa Horia



It got, thank you.

Here is the ISSUE: i'm creating an installer with InstallShield. 
InstallShield decompress the files in a temporary directory. Now I have to set 
the environment variable AXISCPP_DEPLOY to 
point to the directory where Axis can find 
axiscpp.conf.
This make things a little harder. It would be nice if 
youcould specify with an API call the HTTPS DLL.
To make things clear: AXIS works with SSL but you have to set it 
in a very unusual way.

Thanks




From: Fred Preston [mailto:[EMAIL PROTECTED] 
Sent: 24 mai 2005 15:36To: 
axis-c-user@ws.apache.orgSubject: Fw: Axis C++ SSL 
problem
Hi Popa, I don't know if this message 
got through... Regards,Fred 
Preston.- 
Forwarded by Fred Preston/UK/IBM on 05/24/2005 01:33 PM - 

  
  

Fred Preston 
  05/24/2005 10:55 AM 
To:   
   axis-c-user@ws.apache.org cc: 
  From:  
Fred Preston/UK/[EMAIL PROTECTED] Subject:   
   Axis C++ SSL problemHi Popa,  
   There could be several reasons why SSL is not working for 
you... The SSL channel library is only loaded when it is declared in the 
axiscpp.conf file. Check that your axiscpp.conf file contains the 
following line:- Channel_HTTP_SSL:inst_dir\bin\HTTPGSKitChannel.dll 
When inst_dir is the directory 
where you have installed Axis. You 
do not mention what type of exception is caught by your application. You 
should have a try...catch block around the web services code. Here is an 
example of the type of exception handling you should be using... 
try {  
   WebServicews( 
pszEndpoint);   
  cout  "WebService test returns "  ws.test( 0) 
 endl; } catch( SoapFaultException sfe) {   
  // Catch any SOAP fault cout  "SoapFaultException: "  
sfe.getFaultCode()  " "  sfe.what()  endl; 
} catch( 
AxisException e) { 
// 
Catch an AXIS exception cout  
"AxisException: "  e.getExceptionCode()  " "  e.what()  endl; } catch( exception e) { // Catch a general exception cout  "Unknown Exception: "  e.what() 
 endl; } catch( ...) { // Catch any 
other exception cout  
"Unspecified Exception: "  endl; } Try these first and see how 
you get on... It could be the problem lies elsewhere, but any exception 
thrown will help to narrow the search area :-) Regards,Fred Preston.is anyone there who can give me a clue Please 
 _ From: Popa Horia 
[mailto:[EMAIL PROTECTED] Sent: 23 mai 2005 10:37To: 
'axis-c-user@ws.apache.org'Subject: RE: Axis C++ SSL 
problemI have to mention that i have user Axis 1.5 and 
Axis 1.6 20 May nightlybuild  _ 
From: Popa Horia [mailto:[EMAIL PROTECTED] 
Sent: 21 mai 2005 10:09To: 
'axis-c-user@ws.apache.org'Subject: Axis C++ SSL 
problem Hi 
there,  I have a Java Axis 
server and i'm trying to connect with a stubwritten in C++. It 
works fine on http but it failes on https.I see when I run the program 
in debug mode that the HttpSSLChannel is neverloaded. The application 
failes at this line in the Stub: if (AXIS_SUCCESS 
!=m_pCall-initialize(CPP_DOC_PROVIDER)) return pReturn; 
   My Tomcat server is behind Apache 1.3.1 and i'm using 
MOD_JK to makethose applications talk to each other. My guess is that 
the request neverleaves my client. To prove this I have used a network 
sniffer and indeed,the client dies before any request is sent to the 
server. Maybe I don't haveall the DDLs ?? I have installed openssl 
The client runs on Windows. 
 Any help is appeciated. 
 thanks   
  
AEROSPACEINFORMATIONCO., 
LTD. virus-free and secure email 


RE: Axis C++ SSL problem

2005-05-24 Thread Fred Preston

Hi Popa,
This
is something we are looking into (i.e. being able to set configuration
information from the client application), but unfortunately, there are
no commands at present to do this. Thus, you are stuck with having
to configure Axis through the axiscpp.conf file :-(. If at all possible,
could you elaborate on the unusual steps you have taken to get SSL working
(in your e-mail you say, AXIS
works with SSL but you have to set it in a very unusual way.)?

Regards,

Fred Preston.







Popa Horia [EMAIL PROTECTED]
05/24/2005 02:22 PM
Please respond to Apache AXIS
C User List

To:
   'Apache AXIS C User List'
axis-c-user@ws.apache.org
cc:
   
Subject:
   RE: Axis C++ SSL problem

   

It got, thank you.

Here is the ISSUE: i'm creating
an installer with InstallShield. InstallShield decompress the files in
a temporary directory. Now I have to set the environment variable AXISCPP_DEPLOY
 to point to the directory
where Axis can find axiscpp.conf.
This make things a little
harder. It would be nice if you could specify with an API call the HTTPS
DLL.
To make things clear: AXIS works
with SSL but you have to set it in a very unusual way.

Thanks




From: Fred Preston [mailto:[EMAIL PROTECTED]

Sent: 24 mai 2005 15:36
To: axis-c-user@ws.apache.org
Subject: Fw: Axis C++ SSL problem


Hi Popa, 
I don't know if this message got through...


Regards,

Fred Preston.


- Forwarded by Fred Preston/UK/IBM on 05/24/2005 01:33 PM -




Fred Preston

05/24/2005 10:55 AM


To:axis-c-user@ws.apache.org

cc:

From:Fred Preston/UK/[EMAIL PROTECTED]

Subject:Axis C++
SSL problem 




Hi Popa, 
There could be several reasons why SSL is not
working for you... The SSL channel library is only loaded when it
is declared in the axiscpp.conf file. Check that your axiscpp.conf
file contains the following line:- 

Channel_HTTP_SSL:inst_dir\bin\HTTPGSKitChannel.dll


When inst_dir is the directory where you have installed Axis.


You do not mention what type of exception is caught by your application.
You should have a try...catch block around the web services code.
Here is an example of the type of exception handling you should be
using... 

try 
{ 
WebServicews( pszEndpoint);


cout  WebService test returns
  ws.test( 0)  endl; 
} 
catch( SoapFaultException sfe)

{ 
// Catch any SOAP fault

cout  SoapFaultException: 
 sfe.getFaultCode() sfe.what()
 endl; 
} 
catch( AxisException e)

{ 
// Catch an AXIS exception

cout  AxisException:   e.getExceptionCode()
  
 e.what()  endl;

} 
catch( exception e)

{ 
// Catch a general exception

cout  Unknown Exception:   e.what() 
endl; 
} 
catch( ...)

{ 
// Catch any other exception

cout  Unspecified Exception:   endl;

} 

Try these first and see how you get on... It could be the problem
lies elsewhere, but any exception thrown will help to narrow the search
area :-) 

Regards,

Fred Preston.

is anyone there who can give me a clue Please 

 _ 

From: Popa Horia [mailto:[EMAIL PROTECTED] 
Sent: 23 mai 2005 10:37
To: 'axis-c-user@ws.apache.org'
Subject: RE: Axis C++ SSL problem


I have to mention that i have user Axis 1.5 and Axis 1.6 20 May nightly
build 

 _ 

From: Popa Horia [mailto:[EMAIL PROTECTED] 
Sent: 21 mai 2005 10:09
To: 'axis-c-user@ws.apache.org'
Subject: Axis C++ SSL problem


 
Hi there,
 
 
I have a Java Axis server and i'm trying
to connect with a stub
written in C++. It works fine on http but it failes on https.
I see when I run the program in debug mode that the HttpSSLChannel
is never
loaded. The application failes at this line in the Stub: if (AXIS_SUCCESS
!=
m_pCall-initialize(CPP_DOC_PROVIDER)) return pReturn;
My Tomcat server is behind Apache 1.3.1
and i'm using MOD_JK to make
those applications talk to each other. My guess is that the request
never
leaves my client. To prove this I have used a network sniffer and indeed,
the client dies before any request is sent to the server. Maybe I don't
have
all the DDLs ?? I have installed openssl 
The client runs on Windows.
 
 
Any help is appeciated.
 
 
thanks
 
   
 




AEROSPACEãINFORMATIONãCO., LTD.
 virus-free and secure email 



RE: Axis C++ SSL problem

2005-05-24 Thread Popa Horia



By unusual way I ment: create the conf fileand the 
environment variable.It wasn't so easy for me to figure this out. It 
wasn't easy because I didn't use the conf file and without looking into the code 
i would never figure out how to do it.
Still this doesn't solve me the issue of changing the environment 
for the AxisClient.dll:
 - I run the installer 
 - I set the environment variable to point to the temp 
directory
 - I generate the conf file in the temp 
directory
 - Make a call to the Webservice.

 To set the environment variable I use SetEnvironmentVariable .The problem is that it seems 
like the AxisClient DLL doesn't see this variable. I know that each process gets 
a copy of the environment from the parent process. I don't know why this isn't 
working for DLLs. Any ideas ?
Axis uses genenv call from C++ Runtime to read the AXISCPP_DEPLOY 
variable.



From: Fred Preston [mailto:[EMAIL PROTECTED] 
Sent: 24 mai 2005 17:50To: Apache AXIS C User 
ListSubject: RE: Axis C++ SSL problem
Hi Popa, This is something we are 
looking into (i.e. being able to set configuration information from the client 
application), but unfortunately, there are no commands at present to do this. 
Thus, you are stuck with having to configure Axis through the axiscpp.conf 
file :-(. If at all possible, could you elaborate on the unusual steps you 
have taken to get SSL working (in your e-mail you say, "AXIS works with SSL but you have to set it in a very unusual 
way.")? Regards,Fred Preston.

  
  

Popa Horia 
  [EMAIL PROTECTED] 
  05/24/2005 02:22 PM Please respond to "Apache AXIS C User List" 
  
To:   
   "'Apache AXIS C User List'" 
  axis-c-user@ws.apache.org cc: 
  Subject: 
 RE: Axis C++ SSL problem
It 
got, thank you.  Here is the ISSUE: i'm creating an installer with 
InstallShield. InstallShield decompress the files in a temporary directory. Now 
I have to set the environment variable AXISCPP_DEPLOY  to 
point to the directory where Axis can find axiscpp.conf. This make things a little harder. It would be nice if you could 
specify with an API call the HTTPS DLL. To make things clear: AXIS works with SSL but you have to set it in a 
very unusual way.  Thanks   

From: Fred Preston [mailto:[EMAIL PROTECTED] 
Sent: 24 mai 2005 15:36To: 
axis-c-user@ws.apache.orgSubject: Fw: Axis C++ SSL 
problemHi 
Popa,   
 I don't know if this message got through... 
Regards,Fred 
Preston.- Forwarded by Fred Preston/UK/IBM on 05/24/2005 01:33 PM 
- 

  
  

Fred 
  Preston 
  05/24/2005 10:55 AM 
  

 To: 
 axis-c-user@ws.apache.org 
 cc: 
 From:   
   Fred Preston/UK/[EMAIL PROTECTED]Subject:  
Axis C++ SSL problem 
 
  Hi Popa,There could be several reasons why SSL is 
not working for you... The SSL channel library is only loaded when it is 
declared in the axiscpp.conf file. Check that your axiscpp.conf file 
contains the following line:- Channel_HTTP_SSL:inst_dir\bin\HTTPGSKitChannel.dll When inst_dir is the 
directory where you have installed Axis. You do not mention what type of exception is caught 
by your application. You should have a try...catch block around the web 
services code. Here is an example of the type of exception handling you 
should be using... try {WebServicews( 
pszEndpoint);cout  "WebService test returns " 
 ws.test( 0)  endl; } catch( SoapFaultException sfe) {// Catch 
any SOAP faultcout  "SoapFaultException: " 
 sfe.getFaultCode()  " "  sfe.what()  
endl; } catch( AxisException 
e) {   
 // Catch an AXIS exception cout  "AxisException: "  
e.getExceptionCode()  " "  e.what()  
endl; } catch( exception 
e) {   
 // Catch a general exception cout  "Unknown Exception: "  
e.what()  endl; } catch( ...) { 
   
// Catch any other exception cout  "Unspecified Exception: "  
endl; } Try 
these first and see how you get on... It could be the problem lies 
elsewhere, but any exception thrown will help to narrow the search area 
:-) Regards,Fred Preston.is anyone there who can give me a clue Please 
 _ From: Popa Horia 
[mailto:[EMAIL PROTECTED] Sent: 23 mai 2005 10:37To: 
'axis-c-user@ws.apache.org'Subject: RE: Axis C++ SSL 
problemI have to mention that i have user Axis 1.5 and 
Axis 1.6 20 May nightlybuild  _ 
From: Popa Horia [mailto:[EMAIL PROTECTED] 
Sent: 21 mai 2005 10:09To: 
'axis-c-user@ws.apache.org'Subject: Axis C++ SSL 
problem Hi 
there,  I have a Java Axis 
server and i'm trying to connect with a stubwritten in C++. It 
works fine on http but it failes on https.I see when I run the program 
in debug mode that the HttpSSLChannel is neverloaded. The application 
failes at this line in the Stub: if (AXIS_SUCCESS 
!=m_pCall-initialize(CPP_DOC_PROVIDER)) return pReturn; 
   My Tomcat server is behind Apache 1.3.1 and i'm using 
MOD_JK to makethose applications talk to each other. 

RE: Axis C++ SSL problem

2005-05-24 Thread Fred Preston

Hi Popa,
I'm
not familiar with IS, but it may well be that environment variables set
whilst the current instance of IS is running will not be 'seen' by IS until
it is run again. I know that if you change environment variables
whilst running some programs they will not pick up the changes until they
are next run (MSVC is definitely one such application). You will
have to read the IS manuals to see if there is any information/examples
on this subject...

Regards,

Fred Preston.







Popa Horia [EMAIL PROTECTED]
05/24/2005 04:21 PM
Please respond to Apache AXIS
C User List

To:
   'Apache AXIS C User List'
axis-c-user@ws.apache.org
cc:
   
Subject:
   RE: Axis C++ SSL problem

   

By unusual way I ment: create
the conf file and the environment variable. It wasn't so easy for me to
figure this out. It wasn't easy because I didn't use the conf file and
without looking into the code i would never figure out how to do it.
Still this doesn't solve me the
issue of changing the environment for the AxisClient.dll:
  -
I run the installer 
  -
I set the environment variable to point to the temp directory
  -
I generate the conf file in the temp directory
  -
Make a call to the Webservice.

  To
set the environment variable I use SetEnvironmentVariable
.The problem is that it seems like the AxisClient DLL doesn't see this
variable. I know that each process gets a copy of the environment from
the parent process. I don't know why this isn't working for DLLs. Any ideas
?
Axis uses genenv call from C++
Runtime to read the AXISCPP_DEPLOY
variable.


From: Fred Preston [mailto:[EMAIL PROTECTED]

Sent: 24 mai 2005 17:50
To: Apache AXIS C User List
Subject: RE: Axis C++ SSL problem


Hi Popa, 
This is something we are looking into (i.e.
being able to set configuration information from the client application),
but unfortunately, there are no commands at present to do this. Thus,
you are stuck with having to configure Axis through the axiscpp.conf file
:-(. If at all possible, could you elaborate on the unusual steps
you have taken to get SSL working (in your e-mail you say, AXIS
works with SSL but you have to set it in a very unusual way.)?


Regards,

Fred Preston.






Popa Horia [EMAIL PROTECTED]

05/24/2005 02:22 PM

Please respond to Apache AXIS C User List


To:'Apache
AXIS C User List' axis-c-user@ws.apache.org

cc:

Subject:RE: Axis
C++ SSL problem 




It got, thank you. 
 
Here is the ISSUE: i'm creating an installer with InstallShield. InstallShield
decompress the files in a temporary directory. Now I have to set the environment
variable AXISCPP_DEPLOY
 to point to the directory
where Axis can find axiscpp.conf.

 This make things a little harder. It would be nice if you could specify
with an API call the HTTPS DLL. 
To make things clear: AXIS works with SSL but you have to set it in a very
unusual way. 
 
Thanks 
 
 


From: Fred Preston [mailto:[EMAIL PROTECTED]

Sent: 24 mai 2005 15:36
To: axis-c-user@ws.apache.org
Subject: Fw: Axis C++ SSL problem


Hi Popa, 
I don't know if this message got through...


Regards,

Fred Preston.


- Forwarded by Fred Preston/UK/IBM on 05/24/2005 01:33 PM -




Fred Preston

05/24/2005 10:55 AM


To:axis-c-user@ws.apache.org

cc:

From:Fred Preston/UK/[EMAIL PROTECTED]

Subject:Axis C++ SSL
problem 

   



Hi Popa, 
There could be several reasons why SSL is not working
for you... The SSL channel library is only loaded when it is declared
in the axiscpp.conf file. Check that your axiscpp.conf file contains
the following line:- 

Channel_HTTP_SSL:inst_dir\bin\HTTPGSKitChannel.dll


When inst_dir is the directory where you have installed Axis.


You do not mention what type of exception is caught by your application.
You should have a try...catch block around the web services code.
Here is an example of the type of exception handling you should be
using... 

try 
{ 
WebServicews( pszEndpoint);


cout  WebService test returns 
 ws.test( 0)  endl; 
} 
catch( SoapFaultException sfe)

{ 
// Catch any SOAP fault 
cout  SoapFaultException:  
sfe.getFaultCode() sfe.what() 
endl; 
} 
catch( AxisException e)

{ 
// Catch an AXIS exception 
cout  AxisException:   e.getExceptionCode()
  
 e.what()  endl;

} 
catch( exception e)

{ 
// Catch a general exception

cout  Unknown Exception:   e.what() 
endl; 
} 
catch( ...)

{ 
// Catch any other exception

cout  Unspecified Exception:   endl;

} 

Try these first and see how you get on... It could be the problem
lies elsewhere, but any exception thrown will help to narrow the search
area :-) 

Regards,

Fred Preston.

is anyone there who can give me a clue Please 

 _ 

From: Popa Horia [mailto:[EMAIL PROTECTED] 
Sent: 23 mai 2005 10:37
To: 'axis-c-user@ws.apache.org'
Subject: RE: Axis C++ SSL problem


I have to mention that i have user Axis 1.5 and Axis 1.6 20 May nightly
build 

 

Invitation to join the Web Services Discussion Forum

2005-05-24 Thread John Eliacy
Dear Madam/Sir,We, a group of enthusiastic web services developers and researchers,have started a new discussion forum at 
http://www.ws-talk.com to bring together academics and industry people interested in the subject of Web Services and related technologies, such as agents, distributed architectures, jini, corbaetc. We hope to create a place in which anyone related to these Internet enabling technologies can ask questions, publish articles and read about what others are doing. 
You are cordially invited to join and bring your valuable contribution to this forum. Joining takes no longer than one minute and is free. To join, please go to 
http://www.ws-talk.com and click on register. You are welcome to post any information you consider relevant and ask any questions you might want answered by our or associate experts.We appreciate your help in distributing this invitation to your colleagues. 
Kind regards,The www.ws-talk.com moderatorsThis is the only email related to this issue you will receive from us. We do apologise if you will receive duplicate copies of this email.


RE: Can't build 1.5 source - .deps not there

2005-05-24 Thread Samisa Abeysinghe
Title: RE: Can't build 1.5 source - .deps not there









Please
note that the Makefile.am files are not up-to-date in
1.5 release. (May be it builds half way, but may not
link all the stuff correctly )

Only the ant build
works properly.



Have you tried building with ant?



Samisa



-Original Message-
From: Yampolsky, Robert
[mailto:[EMAIL PROTECTED] 
Sent: Tuesday, May 24, 2005 11:44
PM
To: Yampolsky, Robert;
axis-c-user@ws.apache.org
Subject: RE: Can't build 1.5
source - .deps not there



So, looking at the
Makefile's I guess these .deps directories are supposed to be generated on the
fly by make running the 'depcomp' script.

I'm running RHEL 3.0, but
somebody here patched the system to load the 2.96 gcc toolset as required by
Oracle 9 for its installation. I undid the symlinks between
gcc-gcc295 and g++-g++296 to point them to the gcc323 and g++323
versions, but I'm guessing that depcomp is using other parts of the toolchain
that are inconsisten, missing or whatever.

I've been able to get the
makefiles to run by editing out all the DEPS stuff, and I suppose that's
alright, since I assume this is just for automatic dependency detection.

So, bottom line, my
question is this: 

Am I looking for trouble
getting Axis C++ to run on an RHEL 3.0 system that has this hybrid compiler
set? 

Is it possible that other
problems I've been having (can't get ?wsdl URL's to work) could be related to
this? 

Thanks, 
Rob 

_ 
From:  Yampolsky, Robert 
Sent: Monday, May 23, 2005 12:02 PM

To: 'axis-c-user@ws.apache.org'

Subject:
Can't
build 1.5 source - .deps not there 

I'm trying to build axisc++ from the 1.5.0 source.


Configure ran okay, but make reports failed attempts
to access stuff in .deps subdirectories. They're not there. Is the
source tarball bad, or is there something I can do at .configure time to make
it not try to access these .deps subdirs?

R o b Y a m p
o l s k y 
Harris Corporation 
[EMAIL PROTECTED] 
(212) 303 - 4250 








Stray charac.NET and AXIS Interoperability issue

2005-05-24 Thread Krishnendu Kunti
Hi

I am trying to invoke a AXIS web service from a .NET platform. The
response comes fine but there are stray characters (some number) just
in front of SOAP envelope tag which is creates problem at the .NET
client. Can som one suggest why is this happening and how to prevnt
it.

I am including the response:

Thanks in advance.
Regards
Krish

Response from AXIS:
=

HTTP/1.1 100 ContinueHTTP/1.1 200 OKContent-Type:
text/xml;charset=utf-8Transfer-Encoding: chunkedDate: Tue, 24 May 2005
06:06:02 GMTServer: Apache-Coyote/1.1269?xml version=1.0
encoding=utf-8?
   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
 getStockQuoteResponse
xmlns=http://w3.ibm.com/schemas/services/2002/11/15/stockquote;
quote xsi:type=quote xmlns=
   symbolIBM/symbol
   volume979012312/volume
   lastTrade
  price678.0/price
  date1116914762732/date
   /lastTrade
   change
  dollar678.0/dollar
  percent300.0/percent
  positivetrue/positive
   /change
/quote
 /getStockQuoteResponse
  /soapenv:Body
   /soapenv:Envelope
0

Please note that there is a stray 0 at the end of SOAP envelope.
**

The request from .NET client
==

POST /axis/services/StockQuoteSOAPPort
HTTP/1.1VsDebuggerCausalityData:
AwAAADS3SUNichtGuljzJo6eoGAMCQAAFA8A3OkSAAB2AGUAcgBzAGkAbwBuAD0ANwAuADAAOwBhAHUAdABvAGEAdAB0AGEAYwBoAGMAbABzAGkAZAA9AHsANwAwAEYANgA1ADQAMQAxAC0ARgBFADgAQwAtADQAMgA0ADgALQBCAEMARgBGAC0ANwAwADEAQwA4AEIAMgBGADQANQAyADkAfQA7AHMAZQBzAHMAaQBvAG4APQB7AEQARAAyAEEAQgAyAEUARQAtADIAOAA4ADMALQA0ADAANwA2AC0AOQBFAEIAOAAtAEUAMAA3ADgANwAxADEARgBDAEEAQwA2AH0AUser-Agent:
Mozilla/4.0 (compatible; MSIE 6.0; MS Web Services Client Protocol
1.1.4322.573)Content-Type: text/xml; charset=utf-8SOAPAction:
getStockQuoteContent-Length: 362Expect: 100-continueConnection:
Keep-AliveHost: hydhtc27340?xml version=1.0 encoding=utf-8?
   soap:Envelope
xmlns:soap=http://schemas.xmlsoap.org/soap/envelope/;
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
xmlns:xsd=http://www.w3.org/2001/XMLSchema;
  soap:Body
 getStockQuote
xmlns=http://w3.ibm.com/schemas/services/2002/11/15/stockquote;

managing nillable elements

2005-05-24 Thread lio axis
Hello world,

I've already asked for this question. Nobody answered. I supposed
i was not clear. If it's too trivial to be answered, please let me know...

The point is how i can manage axis to control nillable property on elements in complex type?

For instance, if my wsdd file defines the following complex type :

typeMapping qname=ns:resultat 
xmlns:ns=http://xxx/typeslanguageSpecificType=
java:org.my.typeserializer=org.apache.axis.encoding.ser.BeanSerializerFactory
deserializer=org.apache.axis.encoding.ser.BeanDeserializerFactoryencodingStyle=
http://schemas.xmlsoap.org/soap/encoding// 
How, i force the wsdl to be :
complexType name=messageTechnique
sequence.../...
element name=code nillable=
true type=xsd:string /
.../.../sequence
/complexType 
OR :element name=code type=
xsd:string /
Please help,


org.apache.axis.ConfigurationException with attachments support

2005-05-24 Thread Kumar
Hi All,


I am trying to use attachment support with axis and I have
activation.jar and mail.jar in my WEB-INF\lib  directory. I am using
AXIS 1.2 Final and Tomcat and I have below service registered in
server-config.wsdd file :


service name=AttachmentService provider=java:RPC
parameter name=className value=SparePartAttachmentService/
parameter name=allowedMethods value=addImage/
typeMapping  qname=ns1:DataHandler xmlns:ns1=AttachmentService
languageSpecificType=java:javax.activation.DataHandler 
serializer=org.apache.axis.encoding.ser.JAFDataHandlerSerializer 
deserializer=org.apache.axis.encoding.ser.JAFDataHandlerDeserializerFactory
encodingStyle=http://schemas.xmlsoap.org/soap/encoding//
/service


Now when I start my tomcat I am getting below exception in my tomcat
log files. Can anyone please tell me what am I
missing here. Please suggest ...


org.apache.axis.ConfigurationException:
org.apache.axis.deployment.wsdd.WSDDException:
java.lang.ClassCastException
java.lang.ClassCastException
at 
org.apache.axis.encoding.ser.BaseSerializerFactory.createFactory(BaseSerializerFactory.java:301)
at 
org.apache.axis.deployment.wsdd.WSDDService.deployTypeMapping(WSDDService.java:534)
at 
org.apache.axis.deployment.wsdd.WSDDService.initTMR(WSDDService.java:245)
at 
org.apache.axis.deployment.wsdd.WSDDService.init(WSDDService.java:225)
at 
org.apache.axis.deployment.wsdd.WSDDDeployment.init(WSDDDeployment.java:191)
at 
org.apache.axis.deployment.wsdd.WSDDDocument.setDocument(WSDDDocument.java:139)
at 
org.apache.axis.deployment.wsdd.WSDDDocument.init(WSDDDocument.java:65)
at 
org.apache.axis.configuration.FileProvider.configureEngine(FileProvider.java:179)
at org.apache.axis.AxisEngine.init(AxisEngine.java:172)
at org.apache.axis.AxisEngine.init(AxisEngine.java:156)
at org.apache.axis.server.AxisServer.init(AxisServer.java:88)
at 
org.apache.axis.server.DefaultAxisServerFactory.createServer(DefaultAxisServerFactory.java:109)
at 
org.apache.axis.server.DefaultAxisServerFactory.getServer(DefaultAxisServerFactory.java:73)
at org.apache.axis.server.AxisServer.getServer(AxisServer.java:73)
at 
org.apache.axis.transport.http.AxisServletBase.getEngine(AxisServletBase.java:185)
at 
org.apache.axis.transport.http.AxisServletBase.getOption(AxisServletBase.java:396)
at 
org.apache.axis.transport.http.AxisServletBase.init(AxisServletBase.java:112)
at javax.servlet.GenericServlet.init(GenericServlet.java:256)
at 
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1044)
at 
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:887)
at 
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3959)
at 
org.apache.catalina.core.StandardContext.start(StandardContext.java:4284)
at 
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:866)
at 
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:850)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:638)
at 
org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.java:320)
at org.apache.catalina.core.StandardHost.install(StandardHost.java:875)
at 
org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:727)
at 
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:477)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1008)
at 
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:394)
at 
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:166)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1134)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:832)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1126)
at 
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:521)
at 
org.apache.catalina.core.StandardService.start(StandardService.java:519)
at 
org.apache.catalina.core.StandardServer.start(StandardServer.java:2345)
at org.apache.catalina.startup.Catalina.start(Catalina.java:594)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:297)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:398)




Thanks  Regards,
Kumar.


axis + vb .net

2005-05-24 Thread Pippo Plutone

Hi all,
I have a problem when I using AXIS with client VB .Net.

I have a web service with AXIS (provider=java:RPC) and a client VB .Net; 
it works
while when I have a web service with AXIS (provider=java:MSG 
style=document use=literal) with a client VB .Net I have a problem:


“An unhandled exception of type 'System.InvalidOperationException' occurred 
in system.xml.dll

Additional information: There was an error generating the XML document”

Can you help me?

Thanks Pasquy

_
Comunica in tempo reale http://messenger.msn.com/beta



(405) Method not allowed

2005-05-24 Thread Plorks mail



Dear All,

I'm trying to call a method from an external web service using this code

But i get the error

(405) Method not allowed

Is anyone able to tell me what this error means, can anyone see anything 
wrong with my code


Many thanks or your help




String a = 12345
String b = 12345
int c = 86;

String d= Integer.toHexString(c);

URL endpoint = new URL(http://.calling_service.wsdl;);

Service service = new Service();

Call call = (Call)service.createCall();

call.setTargetEndpointAddress(endpoint);

call.setUsername(username);

call.setPassword(password);

call.setOperationName(methodName);

String result = (String)call.invoke(new Object[] {a, b, d});

_
It's fast, it's easy and it's free. Get MSN Messenger 7.0 today! 
http://messenger.msn.co.uk




AW: (405) Method not allowed

2005-05-24 Thread Ferruh Zamangoer


-Ursprüngliche Nachricht-
Von: Plorks mail [mailto:[EMAIL PROTECTED] 
Gesendet: Dienstag, 24. Mai 2005 11:55
An: axis-user@ws.apache.org
Betreff: (405) Method not allowed



Dear All,

I'm trying to call a method from an external web service using this code

But i get the error

(405) Method not allowed

Is anyone able to tell me what this error means, can anyone see anything 
wrong with my code

Many thanks or your help




String a = 12345
String b = 12345
int c = 86;

String d= Integer.toHexString(c);

URL endpoint = new URL(http://.calling_service.wsdl;);

Service service = new Service();

Call call = (Call)service.createCall();

call.setTargetEndpointAddress(endpoint);

call.setUsername(username);

call.setPassword(password);

call.setOperationName(methodName);

String result = (String)call.invoke(new Object[] {a, b, d});

_
It's fast, it's easy and it's free. Get MSN Messenger 7.0 today! 
http://messenger.msn.co.uk



AW: (405) Method not allowed

2005-05-24 Thread Ferruh Zamangoer
Sorry for the empty mail :=) I'am not sure, but it sounds like that you have
deployed your service wrong. How have you deployed your service. Look at
your .wsdd File under allowedMethods if you choose * and deploy your service
every method is available for every client call.


service name=CFileTest provider=java:RPC style=rpc use=encoded
  
  parameter name=allowedMethods value=*/
/service


Regards
Ferruh


-Ursprüngliche Nachricht-
Von: Plorks mail [mailto:[EMAIL PROTECTED] 
Gesendet: Dienstag, 24. Mai 2005 11:55
An: axis-user@ws.apache.org
Betreff: (405) Method not allowed



Dear All,

I'm trying to call a method from an external web service using this code

But i get the error

(405) Method not allowed

Is anyone able to tell me what this error means, can anyone see anything 
wrong with my code

Many thanks or your help




String a = 12345
String b = 12345
int c = 86;

String d= Integer.toHexString(c);

URL endpoint = new URL(http://.calling_service.wsdl;);

Service service = new Service();

Call call = (Call)service.createCall();

call.setTargetEndpointAddress(endpoint);

call.setUsername(username);

call.setPassword(password);

call.setOperationName(methodName);

String result = (String)call.invoke(new Object[] {a, b, d});

_
It's fast, it's easy and it's free. Get MSN Messenger 7.0 today! 
http://messenger.msn.co.uk



axis and JAAS

2005-05-24 Thread BVG
Hi there,

I have a problem with Axis when I'm in a JAAS module. When I invoke a Web 
Service call I get a CastClassException. If I call a Web Service out of the 
JAAS module, everything works fine. Now, I must call the Authentication Web 
Service in the JAAS module, how it can be done? :(

When I call:

VerificaAutenticacaoResponse resp = (VerificaAutenticacaoResponse) 
stub.verificaAutenticacao(verificaAutenticacao);


Exception:

; nested exception is:
   java.lang.ClassCastException
- VerificaAutenticacao: error calling the webservice
- END: Webservice
SampleLoginModule abort() - BEGIN
SampleLoginModule abort() - END
- Login exception authenticating username xpto
javax.security.auth.login.LoginException: java.lang.NullPointerException
   at jaas.module.SampleLoginModule.login(SampleLoginModule.java:217)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
   at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
   at java.lang.reflect.Method.invoke(Method.java:324)
   at javax.security.auth.login.LoginContext.invoke(LoginContext.java:675)
   at javax.security.auth.login.LoginContext.access$000(LoginContext.java:129)
   at javax.security.auth.login.LoginContext$4.run(LoginContext.java:610)
   at java.security.AccessController.doPrivileged(Native Method)
   at javax.security.auth.login.LoginContext.invokeModule(LoginContext.java:607)
   at javax.security.auth.login.LoginContext.login(LoginContext.java:534)
   at org.apache.catalina.realm.JAASRealm.authenticate(JAASRealm.java:316)
   at 
org.apache.catalina.authenticator.FormAuthenticator.authenticate(FormAuthenticator.java:229)
   at 
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:446)
   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.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)
   at java.lang.Thread.run(Thread.java:534)

   at javax.security.auth.login.LoginContext.invoke(LoginContext.java:730)
   at javax.security.auth.login.LoginContext.access$000(LoginContext.java:129)
   at javax.security.auth.login.LoginContext$4.run(LoginContext.java:610)
   at java.security.AccessController.doPrivileged(Native Method)
   at javax.security.auth.login.LoginContext.invokeModule(LoginContext.java:607)
   at javax.security.auth.login.LoginContext.login(LoginContext.java:534)
   at org.apache.catalina.realm.JAASRealm.authenticate(JAASRealm.java:316)
   at 
org.apache.catalina.authenticator.FormAuthenticator.authenticate(FormAuthenticator.java:229)
   at 
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:446)
   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.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 

RE: axis + vb .net

2005-05-24 Thread Grimm_Clifford
I am using Axis 1.2 and ran into a problem similar to this.

I figured out that Visual Studio .NET does not understand the Version 1.2
type mapping. What I found worked is to change the deploy.wsdd so that the
typeMappingVerison is 1.1.  For example.

  parameter name=typeMappingVersion value=1.1/

I'm not sure if something else needs to change like the namespace to make
this truly correct, but this worked for me.

  Cliff
 

 -Original Message-
 From: Pippo Plutone [mailto:[EMAIL PROTECTED] 
 Sent: Tuesday, May 24, 2005 4:29 AM
 To: axis-user@ws.apache.org
 Subject: axis + vb .net
 
 Hi all,
 I have a problem when I using AXIS with client VB .Net.
 
 I have a web service with AXIS (provider=java:RPC) and a 
 client VB .Net; 
 it works
 while when I have a web service with AXIS (provider=java:MSG 
 style=document use=literal) with a client VB .Net I have 
 a problem:
 
 An unhandled exception of type 
 'System.InvalidOperationException' occurred 
 in system.xml.dll
 Additional information: There was an error generating the XML 
 document
 
 Can you help me?
 
 Thanks Pasquy
 
 _
 Comunica in tempo reale http://messenger.msn.com/beta
 


RE: axis + vb .net

2005-05-24 Thread Henry Lu
There are something you need to know before coding:
1. in .NET, defult use/style is Doc/Lit.
2. in Axis, defule is rpc/encoding.

If you want to comunicate between two, you have to make sure both style
and use must be matched.

-Henry

 [EMAIL PROTECTED] 5/24/2005 9:08:03 AM 
I am using Axis 1.2 and ran into a problem similar to this.

I figured out that Visual Studio .NET does not understand the Version
1.2
type mapping. What I found worked is to change the deploy.wsdd so that
the
typeMappingVerison is 1.1.  For example.

  parameter name=typeMappingVersion value=1.1/

I'm not sure if something else needs to change like the namespace to
make
this truly correct, but this worked for me.

  Cliff
 

 -Original Message-
 From: Pippo Plutone [mailto:[EMAIL PROTECTED] 
 Sent: Tuesday, May 24, 2005 4:29 AM
 To: axis-user@ws.apache.org 
 Subject: axis + vb .net
 
 Hi all,
 I have a problem when I using AXIS with client VB .Net.
 
 I have a web service with AXIS (provider=java:RPC) and a 
 client VB .Net; 
 it works
 while when I have a web service with AXIS (provider=java:MSG 
 style=document use=literal) with a client VB .Net I have 
 a problem:
 
 An unhandled exception of type 
 'System.InvalidOperationException' occurred 
 in system.xml.dll
 Additional information: There was an error generating the XML 
 document
 
 Can you help me?
 
 Thanks Pasquy
 
 _
 Comunica in tempo reale http://messenger.msn.com/beta 
 


**
Electronic Mail is not secure, may not be read every day, and should not be 
used for urgent or sensitive issues.


RE: axis + vb .net

2005-05-24 Thread Henry Lu
And also, AXIS 1.2 stil has bug in the doc/lit implementation not fixed
yet.

-Henry

 [EMAIL PROTECTED] 5/24/2005 9:08:03 AM 
I am using Axis 1.2 and ran into a problem similar to this.

I figured out that Visual Studio .NET does not understand the Version
1.2
type mapping. What I found worked is to change the deploy.wsdd so that
the
typeMappingVerison is 1.1.  For example.

  parameter name=typeMappingVersion value=1.1/

I'm not sure if something else needs to change like the namespace to
make
this truly correct, but this worked for me.

  Cliff
 

 -Original Message-
 From: Pippo Plutone [mailto:[EMAIL PROTECTED] 
 Sent: Tuesday, May 24, 2005 4:29 AM
 To: axis-user@ws.apache.org 
 Subject: axis + vb .net
 
 Hi all,
 I have a problem when I using AXIS with client VB .Net.
 
 I have a web service with AXIS (provider=java:RPC) and a 
 client VB .Net; 
 it works
 while when I have a web service with AXIS (provider=java:MSG 
 style=document use=literal) with a client VB .Net I have 
 a problem:
 
 An unhandled exception of type 
 'System.InvalidOperationException' occurred 
 in system.xml.dll
 Additional information: There was an error generating the XML 
 document
 
 Can you help me?
 
 Thanks Pasquy
 
 _
 Comunica in tempo reale http://messenger.msn.com/beta 
 


**
Electronic Mail is not secure, may not be read every day, and should not be 
used for urgent or sensitive issues.


Axis 1.2 with doc/lit implementation

2005-05-24 Thread Henry Lu
Is there any one can implement the following interface with
server/client examples with style/use of DOC/Lit in AXIS 1.2?


public interface Echo
{
public String echoString(String arg);
public String echoString_double(String arg1, String arg2);
}

I got the following result:

echoString(String arg);: Henry
 public String echoString_double(String arg1, String arg2);: Henrynull

-Henry


**
Electronic Mail is not secure, may not be read every day, and should not be 
used for urgent or sensitive issues.


Re: Axis 1.2 with doc/lit implementation

2005-05-24 Thread jayachandra
Hi Henry!
I remember once there was a long discussion (around 3months back)
about this thing (Thanks to Anne's several informative inputs). In a
nutshell the conclusion as I remember it is that... if you want to
publish your service as doc/lit you shouldn't have method signatures
that accept more than one parameter.

Regards,
Jayachandra

On 5/24/05, Henry Lu [EMAIL PROTECTED] wrote:
 Is there any one can implement the following interface with
 server/client examples with style/use of DOC/Lit in AXIS 1.2?
 
 
 public interface Echo
 {
public String echoString(String arg);
public String echoString_double(String arg1, String arg2);
 }
 
 I got the following result:
 
 echoString(String arg);: Henry
  public String echoString_double(String arg1, String arg2);: Henrynull
 
 -Henry
 
 
 **
 Electronic Mail is not secure, may not be read every day, and should not be 
 used for urgent or sensitive issues.
 


-- 
-- Jaya


Re: Axis 1.2 with doc/lit implementation

2005-05-24 Thread Henry Lu
You are right. But if you look at the wsdl file generated by the
java2wsdl of Axis1.2, it still comes out with multiple parts. If you
look at a wsdl file  generated by .NET from the same interface, it
implements correctly. I'd raised this issue for years and put it in
the request a couple of times and it seems to me it has never been fixed
based upon the W3C standard.

-Henry



**
Electronic Mail is not secure, may not be read every day, and should not be 
used for urgent or sensitive issues.


Re: Axis 1.2 with doc/lit implementation

2005-05-24 Thread jayachandra
Hi Henry!
Can you point to the jira issue number, if you logged one. I'll see if
I can help the Axis team with my effort. It will expedite the whole
process if you can attach the .NET generated wsdl for the said
interface in your reply (if it's already attached at the jira site
then no need).

Thanks
Jayachandra

On 5/24/05, Henry Lu [EMAIL PROTECTED] wrote:
 You are right. But if you look at the wsdl file generated by the
 java2wsdl of Axis1.2, it still comes out with multiple parts. If you
 look at a wsdl file  generated by .NET from the same interface, it
 implements correctly. I'd raised this issue for years and put it in
 the request a couple of times and it seems to me it has never been fixed
 based upon the W3C standard.
 
 -Henry
 
 
 
 **
 Electronic Mail is not secure, may not be read every day, and should not be 
 used for urgent or sensitive issues.
 


-- 
-- Jaya


RE: Axis 1.2 with doc/lit implementation

2005-05-24 Thread Harrison Tim
Title: RE: Axis 1.2 with doc/lit implementation






Hi Henry


I don't think the java2WSDL properly generates document/literal WSDL in Axis 1.1, but I haven't tried this in 1.2. I have always needed to edit the WSDL output, change the style/encoding and use a single complex type as the request argument to the methods called - there needs to be a single root element in the SOAP body to adhere to WS-I BP1.0.

Regards
Tim


-Original Message-
From: Henry Lu [mailto:[EMAIL PROTECTED]] 
Sent: 24 May 2005 14:46
To: [EMAIL PROTECTED]; axis-user@ws.apache.org
Subject: Re: Axis 1.2 with doc/lit implementation


You are right. But if you look at the wsdl file generated by the
java2wsdl of Axis1.2, it still comes out with multiple parts. If you
look at a wsdl file generated by .NET from the same interface, it
implements correctly. I'd raised this issue for years and put it in
the request a couple of times and it seems to me it has never been fixed
based upon the W3C standard.


-Henry




**
Electronic Mail is not secure, may not be read every day, and should not be used for urgent or sensitive issues.





DISCLAIMER

The information contained in this e-mail is confidential and is intended

for the recipient only.

If you have received it in error, please notify us immediately by reply 

e-mail and then delete it from your system. Please do not copy it or

use it for any other purposes, or disclose the content of the e-mail

to any other person or store or copy the information in any medium. 

The views contained in this e-mail are those of the author and not 

necessarily those of Admenta UK Group.

 



RE: Axis 1.2 with doc/lit implementation

2005-05-24 Thread Henry Lu
It is not a good idea to manually change the wsdl file in that way. I
think Axis develop team should fix this bug ASAP.

-Henry

 [EMAIL PROTECTED] 5/24/2005 9:59:21 AM 

Hi Henry

I don't think the java2WSDL properly generates document/literal WSDL
in
Axis 1.1, but I haven't tried this in 1.2. I have always needed to edit
the
WSDL output, change the style/encoding and use a single complex type as
the
request argument to the methods called  - there needs to be a single
root
element in the SOAP body to adhere to WS-I BP1.0.

Regards
Tim

-Original Message-
From: Henry Lu [mailto:[EMAIL PROTECTED] 
Sent: 24 May 2005 14:46
To: [EMAIL PROTECTED]; axis-user@ws.apache.org 
Subject: Re: Axis 1.2 with doc/lit implementation

You are right. But if you look at the wsdl file generated by the
java2wsdl of Axis1.2, it still comes out with multiple parts. If you
look at a wsdl file  generated by .NET from the same interface, it
implements correctly. I'd raised this issue for years and put it in
the request a couple of times and it seems to me it has never been
fixed
based upon the W3C standard.

-Henry



**
Electronic Mail is not secure, may not be read every day, and should
not be
used for urgent or sensitive issues.


DISCLAIMER
The information contained in this e-mail is confidential and is
intended
for the recipient only.
If you have received it in error, please notify us immediately by reply

e-mail and then delete it from your system. Please do not copy it or
use it for any other purposes, or disclose the content of the e-mail
to any other person or store or copy the information in any medium. 
The views contained in this e-mail are those of the author and not 
necessarily those of Admenta UK Group.



**
Electronic Mail is not secure, may not be read every day, and should not be 
used for urgent or sensitive issues.


Re: Axis 1.2 with doc/lit implementation

2005-05-24 Thread Henry Lu
Here is the wsdl file generated by .NET with the same interface:

?xml version=1.0 encoding=utf-8?
definitions xmlns:http=http://schemas.xmlsoap.org/wsdl/http/;
xmlns:soap=http://schemas.xmlsoap.org/wsdl/soap/;
xmlns:s=http://www.w3.org/2001/XMLSchema;
xmlns:s0=http://tempuri.org/;
xmlns:soapenc=http://schemas.xmlsoap.org/soap/encoding/;
xmlns:tm=http://microsoft.com/wsdl/mime/textMatching/;
xmlns:mime=http://schemas.xmlsoap.org/wsdl/mime/;
targetNamespace=http://tempuri.org/;
xmlns=http://schemas.xmlsoap.org/wsdl/;
  types
s:schema elementFormDefault=qualified
targetNamespace=http://tempuri.org/;
  s:element name=echoString
s:complexType
  s:sequence
s:element minOccurs=0 maxOccurs=1 name=in0
type=s:string /
  /s:sequence
/s:complexType
  /s:element
  s:element name=echoStringResponse
s:complexType
  s:sequence
s:element minOccurs=0 maxOccurs=1
name=echoStringResult type=s:string /
  /s:sequence
/s:complexType
  /s:element
  s:element name=echoString_double
s:complexType
  s:sequence
s:element minOccurs=0 maxOccurs=1 name=in0
type=s:string /
s:element minOccurs=0 maxOccurs=1 name=in1
type=s:string /
  /s:sequence
/s:complexType
  /s:element
  s:element name=echoString_doubleResponse
s:complexType
  s:sequence
s:element minOccurs=0 maxOccurs=1
name=echoString_doubleResult type=s:string /
  /s:sequence
/s:complexType
  /s:element
/s:schema
  /types
  message name=echoStringSoapIn
part name=parameters element=s0:echoString /
  /message
  message name=echoStringSoapOut
part name=parameters element=s0:echoStringResponse /
  /message
  message name=echoString_doubleSoapIn
part name=parameters element=s0:echoString_double /
  /message
  message name=echoString_doubleSoapOut
part name=parameters element=s0:echoString_doubleResponse /
  /message
  portType name=EchoSoap
operation name=echoString
  input message=s0:echoStringSoapIn /
  output message=s0:echoStringSoapOut /
/operation
operation name=echoString_double
  input message=s0:echoString_doubleSoapIn /
  output message=s0:echoString_doubleSoapOut /
/operation
  /portType
  binding name=EchoSoap type=s0:EchoSoap
soap:binding transport=http://schemas.xmlsoap.org/soap/http;
style=document /
operation name=echoString
  soap:operation soapAction=http://tempuri.org/echoString;
style=document /
  input
soap:body use=literal /
  /input
  output
soap:body use=literal /
  /output
/operation
operation name=echoString_double
  soap:operation soapAction=http://tempuri.org/echoString_double;
style=document /
  input
soap:body use=literal /
  /input
  output
soap:body use=literal /
  /output
/operation
  /binding
  service name=Echo
port name=EchoSoap binding=s0:EchoSoap
  soap:address location=http://localhost/ws_axis/Echo/Echo.asmx;
/
/port
  /service
/definitions

I don't know how to find my case in the Jira. WHere is the web site?

-Henry

 [EMAIL PROTECTED] 5/24/2005 9:56:25 AM 
Hi Henry!
Can you point to the jira issue number, if you logged one. I'll see if
I can help the Axis team with my effort. It will expedite the whole
process if you can attach the .NET generated wsdl for the said
interface in your reply (if it's already attached at the jira site
then no need).

Thanks
Jayachandra

On 5/24/05, Henry Lu [EMAIL PROTECTED] wrote:
 You are right. But if you look at the wsdl file generated by the
 java2wsdl of Axis1.2, it still comes out with multiple parts. If you
 look at a wsdl file  generated by .NET from the same interface, it
 implements correctly. I'd raised this issue for years and put it in
 the request a couple of times and it seems to me it has never been
fixed
 based upon the W3C standard.
 
 -Henry
 
 
 
 **
 Electronic Mail is not secure, may not be read every day, and should
not be used for urgent or sensitive issues.
 


-- 
-- Jaya


**
Electronic Mail is not secure, may not be read every day, and should not be 
used for urgent or sensitive issues.


java.net.SocketTimeoutException: Read timed out

2005-05-24 Thread Plorks mail



Dear All,

Every call i try to make to an extenal web service i get the error

java.net.SocketTimeoutException: Read timed out

Is anyone able to expalin this to me

Do i need to set some timeouts, if so where do i set them?

Code is from an example

(http://www.xmethods.net/sd/2001/BabelFishService.wsdl)



String endpoint = http://services.xmethods.net:80/perl/soaplite.cgi;;
String namespaceURI = urn:xmethodsBabelFish;
Service service = new Service();
Call call = (Call) service.createCall();
call.setTargetEndpointAddress( endpoint );
call.setOperationName(new QName(namespaceURI, BabelFish) );
Object [] arguments = new Object[2];
arguments[0] = en_fr;
arguments[1] = Thank You;
String greeting = (String) call.invoke(arguments);
greeting = (String) call.invoke(arguments);
System.out.println(greeting);

_
Be the first to hear what's new at MSN - sign up to our free newsletters! 
http://www.msn.co.uk/newsletters




Re: java.net.SocketTimeoutException: Read timed out

2005-05-24 Thread Henry Lu
(http://www.xmethods.net/sd/2001/BabelFishService.wsdl)



String endpoint = http://services.xmethods.net:80/perl/soaplite.cgi;;

Look, you have two different url.

-Henry

 [EMAIL PROTECTED] 5/24/2005 10:45:36 AM 


Dear All,

Every call i try to make to an extenal web service i get the error

java.net.SocketTimeoutException: Read timed out

Is anyone able to expalin this to me

Do i need to set some timeouts, if so where do i set them?

Code is from an example

(http://www.xmethods.net/sd/2001/BabelFishService.wsdl)



String endpoint = http://services.xmethods.net:80/perl/soaplite.cgi;;
String namespaceURI = urn:xmethodsBabelFish;
Service service = new Service();
Call call = (Call) service.createCall();
call.setTargetEndpointAddress( endpoint );
call.setOperationName(new QName(namespaceURI, BabelFish) );
Object [] arguments = new Object[2];
arguments[0] = en_fr;
arguments[1] = Thank You;
String greeting = (String) call.invoke(arguments);
greeting = (String) call.invoke(arguments);
System.out.println(greeting);

_
Be the first to hear what's new at MSN - sign up to our free
newsletters! 
http://www.msn.co.uk/newsletters 



**
Electronic Mail is not secure, may not be read every day, and should not be 
used for urgent or sensitive issues.


HttpSession argument

2005-05-24 Thread Michael Oliver
I have a class that I want to build a web service around, and it has
some methods that have an HttpSession argument.  The Java2WSDL works
fine but the WSDL2Java complains that HttpSession is referenced but not
defined.  

Q1 - Can WSDL2Java handle an HttpSession argument to a method?

Q2 - If so, if the servlet.jar is in the classpath for the task, why
would it complain in this way?

Q3 - If not, then I suppose I need to write a wrapper for this class
without the HttpSession argument then call my target class from the
wrapper and have the implementation grab the session from the context of
the implementation, right?

Michael Oliver
CTO
Alarius Systems LLC
6800 E. Lake Mead Blvd, #1096
Las Vegas, NV 89156
Phone:(702)643-7425
Fax:(702)974-0341
*Note new email changed from [EMAIL PROTECTED]

-Original Message-
From: Kumar [mailto:[EMAIL PROTECTED] 
Sent: Monday, May 23, 2005 9:34 PM
To: axis-user@ws.apache.org; [EMAIL PROTECTED]
Subject: Re: tcpmon client side activity

Hi Oliver,

I had no luck configuring axis tcpmon to monitor soap messages of
remote web services so what i did is registered an handler on the
client side in client-config.wsdd... writing handler is easy and
please have a look at axis api's

- Kumar.

On 5/24/05, Michael Oliver [EMAIL PROTECTED] wrote:
 
 
 I found the generated ServiceLocator and changed it so it gets its
value
 from a properties file.
 
  
 
 Then I change the www.salesforce.com string to localhost:8181 and
restarted.
 
  
 
 Then running tcpmon I am seeing the soap request to login, with the
user id
 and password..but nothing else.  What's odd is that it seems to work
but in
 tcpmon I don't see any other messages.  Of course I WANT to see all
the
 traffic.
 
  
 
 What's next?
 
  
 
 
 Michael Oliver
 
 CTO
 
 Alarius Systems LLC
 
 6800 E. Lake Mead Blvd, #1096
 
 Las Vegas, NV 89156
 
 Phone:(702)643-7425
 
 Fax:(702)974-0341
 
 *Note new email changed from [EMAIL PROTECTED]
 
 
 -Original Message-
 From: Michael Oliver [mailto:[EMAIL PROTECTED] 
 Sent: Monday, May 23, 2005 9:22 AM
 To: axis-user@ws.apache.org
 Subject: tcpmon client side activity
 
  
 
 I have a web application running on a Tomcat 5.0
 http://localhost:8080/myapp/
 
  The local axis generated client is binding to
 https://www.salesforce.com/services/Soap/c/5.0
  
 How do I setup my tcpmon to monitor this traffic?
  
 I tried setting listen port to 8181, checked Proxy radio button and
HTTP
 Proxy checkbox and put in www.salesforce.com hostname and port 443
  
 I figure that I need to change the binding from www.salesforce.com to
 localhost:8181 but I am not sure and I don't see any properties file
where I
 can change it easily.
  
 Do I need to change the soap:address in the wsdl and regenerate (I
hope
 not)?  
 Which of the myriad of generated classes should I check?
 
 
  
 
 
 Michael Oliver



Error in deserialization

2005-05-24 Thread Plorks mail



Hi all

I'm trying to access an external web service and get the error on 
call.invoke


Error in deserialization : failed deserializing value of type
{http://www.api.org/schema/par/common/v1_0}EndUserIdentifier
into class org.api.www.par.common.EndUserIdentifier

Can anyone tell me what this means.  Would it be best to go back to the web 
service supplier with the error?  I have to pass credentials which the web 
service provider have given me, and passing them like this


Thanks for any help


Service service = new Service();

Call call = (Call)service.createCall();

call.setTargetEndpointAddress(endpoint);

call.setUsername(username);

call.setPassword(password);

call.setOperationName(method);

.

_
Be the first to hear what's new at MSN - sign up to our free newsletters! 
http://www.msn.co.uk/newsletters




Client .Net for AXIS (provider-MSG)

2005-05-24 Thread Pippo Plutone

Hi all,

I want to create a client .Net that it uses an web service Axis 
(provider=java:MSG style=document use=literal). The method of web 
service is:


public Document echoDocument(Document doc) throws RemoteException {
   return doc;
}

I've searched everywhere but nothing.

Can you help me?

thanks Pasquy.

_
Blocca le pop-up pubblicitarie con MSN Toolbar! http://toolbar.msn.it/



Invitation to join the Web Services Discussion Forum

2005-05-24 Thread John Eliacy
Dear Madam/Sir,We, a group of enthusiastic web services developers and researchers,have started a new discussion forum at 
http://www.ws-talk.com to bring together academics and industry people interested in the subject of Web Services and related technologies, such as agents, distributed architectures, jini, corbaetc. We hope to create a place in which anyone related to these Internet enabling technologies can ask questions, publish articles and read about what others are doing. 
You are cordially invited to join and bring your valuable contribution to this forum. Joining takes no longer than one minute and is free. To join, please go to 
http://www.ws-talk.com and click on register. You are welcome to post any information you consider relevant and ask any questions you might want answered by our or associate experts.We appreciate your help in distributing this invitation to your colleagues. 
Kind regards,The www.ws-talk.com moderatorsThis is the only email related to this issue you will receive from us. We do apologise if you will receive duplicate copies of this email.


RE: HttpSession argument

2005-05-24 Thread Michael Oliver
I chose the wrapper route and it was fairly straight forward.

My wrapper had all the same methods as the target class, but instead of
the HttpSession sess, argument of the target class methods, I exposed
public methods with (Object httpSession, ...) methods which the
Java2WSDL and WSDL2Java utilities worked fine with.

Target method

Create(HttpSession httpSession, AssignmentForm assignmenForm)

Wrapper method

Create(Object httpSession, AssignmentForm assignmenForm)

Then in the ...BindingImpl() class I added the implementation of the
ServiceLifeCycle interface and the replaced the Object httpSession with
the 

this.jaxrpcContext.getHttpSession() expression and poof, music plays.

Resulting Impl

...Create(this.jaxrpcContext.getHttpSession(), assignmentForm);

Of course I had to preserve the session in the client as that's where my
authentication token is located, which is all the target methods needed
from the session.

Michael Oliver
CTO
Alarius Systems LLC
6800 E. Lake Mead Blvd, #1096
Las Vegas, NV 89156
Phone:(702)643-7425
Fax:(702)974-0341
*Note new email changed from [EMAIL PROTECTED]

-Original Message-
From: Michael Oliver [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, May 24, 2005 8:29 AM
To: axis-user@ws.apache.org
Subject: HttpSession argument 

I have a class that I want to build a web service around, and it has
some methods that have an HttpSession argument.  The Java2WSDL works
fine but the WSDL2Java complains that HttpSession is referenced but not
defined.  

Q1 - Can WSDL2Java handle an HttpSession argument to a method?

Q2 - If so, if the servlet.jar is in the classpath for the task, why
would it complain in this way?

Q3 - If not, then I suppose I need to write a wrapper for this class
without the HttpSession argument then call my target class from the
wrapper and have the implementation grab the session from the context of
the implementation, right?

Michael Oliver
CTO
Alarius Systems LLC
6800 E. Lake Mead Blvd, #1096
Las Vegas, NV 89156
Phone:(702)643-7425
Fax:(702)974-0341
*Note new email changed from [EMAIL PROTECTED]

-Original Message-
From: Kumar [mailto:[EMAIL PROTECTED] 
Sent: Monday, May 23, 2005 9:34 PM
To: axis-user@ws.apache.org; [EMAIL PROTECTED]
Subject: Re: tcpmon client side activity

Hi Oliver,

I had no luck configuring axis tcpmon to monitor soap messages of
remote web services so what i did is registered an handler on the
client side in client-config.wsdd... writing handler is easy and
please have a look at axis api's

- Kumar.

On 5/24/05, Michael Oliver [EMAIL PROTECTED] wrote:
 
 
 I found the generated ServiceLocator and changed it so it gets its
value
 from a properties file.
 
  
 
 Then I change the www.salesforce.com string to localhost:8181 and
restarted.
 
  
 
 Then running tcpmon I am seeing the soap request to login, with the
user id
 and password..but nothing else.  What's odd is that it seems to work
but in
 tcpmon I don't see any other messages.  Of course I WANT to see all
the
 traffic.
 
  
 
 What's next?
 
  
 
 
 Michael Oliver
 
 CTO
 
 Alarius Systems LLC
 
 6800 E. Lake Mead Blvd, #1096
 
 Las Vegas, NV 89156
 
 Phone:(702)643-7425
 
 Fax:(702)974-0341
 
 *Note new email changed from [EMAIL PROTECTED]
 
 
 -Original Message-
 From: Michael Oliver [mailto:[EMAIL PROTECTED] 
 Sent: Monday, May 23, 2005 9:22 AM
 To: axis-user@ws.apache.org
 Subject: tcpmon client side activity
 
  
 
 I have a web application running on a Tomcat 5.0
 http://localhost:8080/myapp/
 
  The local axis generated client is binding to
 https://www.salesforce.com/services/Soap/c/5.0
  
 How do I setup my tcpmon to monitor this traffic?
  
 I tried setting listen port to 8181, checked Proxy radio button and
HTTP
 Proxy checkbox and put in www.salesforce.com hostname and port 443
  
 I figure that I need to change the binding from www.salesforce.com to
 localhost:8181 but I am not sure and I don't see any properties file
where I
 can change it easily.
  
 Do I need to change the soap:address in the wsdl and regenerate (I
hope
 not)?  
 Which of the myriad of generated classes should I check?
 
 
  
 
 
 Michael Oliver




Some Questions Regarding Wrapped Literal and Axis

2005-05-24 Thread Sagar Pidaparthi
Hi,

I have a few questions and would appreciate answers from any one.


When I use Wrapped Literal in Axis 1.2, after I generate wsdl using
jav2wsdl and run wsdl2java, the deploy.wsdd file contains classes with
Method names of the service.  It is possible for me deploy my service,
if I delete these entries from deploy.wsdd.  It is my observation, that
the service works fine after deployment.  

Alternatively, I can jar these method name classes and put them in the
class path of the server and then it is possible to deploy my service
which contains all the method entries in the deploy.wsdd.  The service
works fine in this approach too.

My question is, which of these above two approaches is correct or
intended way of deployment?

Secondly, what is the purpose these classes which bear the method names
of the methods in my service?  These entries are not generated for Rpc
style.

I hope somebody can answer these questions.

Regards

Sagar





Basic Authentication

2005-05-24 Thread Jyothishree Honnavalli








Hi,



 Im trying to access Microsoft sharepoint webservice from an axis
client. I need to authenticate using Basic /NTLM authentication. Im
trying to set username and password 

 call.setUsername(username);

 call.setPassword(passwd);



I also tried 

 call.setProperty(USERNAME_PROPERTY,
username);

 call.setProperty(PASSWORD_PROPERTY,
password);



I still get 401 error Please help
me how to deal with this. I have also attached the code and error below.



Thanks.

Jyothi



--

log4j:WARN No appenders
could be found for logger (org.apache.axis.i18n.ProjectResourceBundle)

log4j:WARN Please initialize the
log4j system properly.

AxisFault

faultCode:
{http://xml.apache.org/axis/}HTTP

faultSubcode:

faultString: (401)Unauthorized

faultActor:

faultNode:

faultDetail:

 {}:return code:
401

401 Unauthorized


{http://xml.apache.org/axis/}HttpErrorCode:401



(401)Unauthorized

 at org.apache.axis.transport.http.HTTPSender.readFromSocket(HTTPSender.java:732)

 at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:143)

 at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)

 at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)

 at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)

 at org.apache.axis.client.AxisClient.invoke(AxisClient.java:165)

 at org.apache.axis.client.Call.invokeEngine(Call.java:2765)

 at org.apache.axis.client.Call.invoke(Call.java:2748)

 at org.apache.axis.client.Call.invoke(Call.java:2424)

 at org.apache.axis.client.Call.invoke(Call.java:2347)

 at org.apache.axis.client.Call.invoke(Call.java:1804)

 at SoapWsdlClient.init(SoapWsdlClient.java:23)

 at SoapWsdlClient.main(SoapWsdlClient.java:36)

Press any key to continue . . .





--







import java.net.*;

import org.apache.axis.client.*;

import javax.xml.namespace.*;





public class SoapWsdlClient

{

public SoapWsdlClient()

{

try

{





 String
endPointAddress = http://server/_vti_bin/search.asmx;

 Service
service = new Service();

 Call
call = ( Call )service.createCall();

 call.setTargetEndpointAddress( endPointAddress );

 call.setUsername(username);

 call.setPassword(passwd);



 call.setSOAPActionURI(urn:Microsoft.Search/Query);

 call.setOperationName( new QName(urn:Microsoft.Search.Query, Query) );

 String
returned = ( String) call.invoke( new Object[] {
 ?xml version=\1.0\ encoding=\utf-8\
?QueryPacket xmlns=\urn:Microsoft.Search.Query\
Revision=\1000\Query
domain=\QDomain\SupportedFormatsFormaturn:Microsoft.Search.Response.Document.Document/Format/SupportedFormatsContextQueryText
language=\en-US\ type=\STRING\cannot
print/QueryText/ContextRangeStartAt1/StartAtCount500/Count/Range/Query/QueryPacket
} );

 System.out.println( Soap returned:  + returned );





}

catch (Exception
e)

{

e.printStackTrace();

}

}



public static void
main(String[] args)

{

SoapWsdlClient SoapWsdlClient = new SoapWsdlClient();

}

}



-
Jyothishree Honnavalli

RightAnswers, LLC

67 Walnut Avenue

Suite 210

Clark, NJ 07066

Ph: 732-396-9010 Ext. 167

Fax 732-396-9011

-










multiRef namespace question

2005-05-24 Thread Mark Ford
In my application, I am deserializing the incoming RPC encoded messages into
a DOM and then validating the DOM against the schema. I'm not using any
generated code in this process, rather I register a custom deserializer to
handle complex types and produce a Document. 

My problem is that validation fails in cases where the elementFormDefault
for the schema is set to qualified. This requires that all child elements of
a given element have the same namespace as their parent. The messages that I
receive from axis generated drivers do not provide any namespace information
for the multiRef elements. 

Here's the output from the soap monitor:

   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
 test
soapenv:encodingStyle=http://schemas.xmlsoap.org/soap/encoding/;
datain href=#id0/
 /test
 multiRef id=id0 soapenc:root=0
soapenv:encodingStyle=http://schemas.xmlsoap.org/soap/encoding/;
xsi:type=ns1:DocumentDataIn
xmlns:soapenc=http://schemas.xmlsoap.org/soap/encoding/;
xmlns:ns1=http://www.active-endpoints.com/wsdl/unit_complex_return;
data1 href=#id1/
data2 href=#id2/
 /multiRef
 multiRef id=id2 soapenc:root=0
soapenv:encodingStyle=http://schemas.xmlsoap.org/soap/encoding/;
xsi:type=xsd:float
xmlns:soapenc=http://schemas.xmlsoap.org/soap/encoding/;123.45/multiRef
 multiRef id=id1 soapenc:root=0
soapenv:encodingStyle=http://schemas.xmlsoap.org/soap/encoding/;
xsi:type=xsd:int
xmlns:soapenc=http://schemas.xmlsoap.org/soap/encoding/;10/multiRef
  /soapenv:Body
   /soapenv:Envelope

The resulting DOM looks like this:

datain
  data110/data1
  data2123.45/data2
/datain

But it should look like this:

datain
xmlns:ns1=http://www.active-endpoints.com/wsdl/unit_complex_return;
  ns1:data110/ns1:data1
  ns1:data2123.45/ns1:data2
/datain

It seems to me that the inbound message is wrong since there is no way to
convey to the receiver that data1 and data2 are qualified. The SOAP 1.1 spec
clearly states that the accessor elements that contain the href should not
be namespace qualified but it also has an example that shows a namespace
prefix being used in the multifRef encoding element
(http://www.w3.org/TR/2000/NOTE-SOAP-2508/#_Toc478383520). The
SerializationContext in axis uses the same QName for multiRefs and it has
the empty namespace. It seems like there should be a way for the multiRef
element to have a namespace prefix.

My workaround is to have my custom deserializer check the type of each
element that I'm deserializing to see if it has a form=qualified in the
schema or if the schema's elementFormDefault=qualified.

I would appreciate any suggestions or other feedback, thanks.



Complex datatypes in SOAP-based Web services

2005-05-24 Thread Omar Bennani
hi
i have to call a service with a complex type parameter
(customer) how can i do:
call.addParameter(o, customer,ParameterMode.IN); 






_ 
Découvrez le nouveau Yahoo! Mail : 1 Go d'espace de stockage pour vos mails, 
photos et vidéos ! 
Créez votre Yahoo! Mail sur http://fr.mail.yahoo.com


Re: Axis 1.2 with doc/lit implementation

2005-05-24 Thread jayachandra
Hi Anne!
Yeah! wrap/lit can be a solution, but...
What do you think about Axis's doc/lit wsdl generation. Is it doing it
right? For what use case does Axis generate the doc/lit wsdl in such a
fashion that it is generating currently? Do you see some scope to
better it? If yes, what kind of betterment?

Thank you
Jayachandra

On 5/25/05, Anne Thomas Manes [EMAIL PROTECTED] wrote:
 If you want to interoperate with.NET, then you want to use the wrapped
 convention (Axis WSDD style=wrapped). It generates document/literal,
 and automatically creates the wrapper element that wraps your multiple
 input parameters.
 
 Anne
 
 
 On 5/24/05, Henry Lu [EMAIL PROTECTED] wrote:
  Here is the wsdl file generated by .NET with the same interface:
 
  ?xml version=1.0 encoding=utf-8?
  definitions xmlns:http=http://schemas.xmlsoap.org/wsdl/http/;
  xmlns:soap=http://schemas.xmlsoap.org/wsdl/soap/;
  xmlns:s=http://www.w3.org/2001/XMLSchema;
  xmlns:s0=http://tempuri.org/;
  xmlns:soapenc=http://schemas.xmlsoap.org/soap/encoding/;
  xmlns:tm=http://microsoft.com/wsdl/mime/textMatching/;
  xmlns:mime=http://schemas.xmlsoap.org/wsdl/mime/;
  targetNamespace=http://tempuri.org/;
  xmlns=http://schemas.xmlsoap.org/wsdl/;
types
  s:schema elementFormDefault=qualified
  targetNamespace=http://tempuri.org/;
s:element name=echoString
  s:complexType
s:sequence
  s:element minOccurs=0 maxOccurs=1 name=in0
  type=s:string /
/s:sequence
  /s:complexType
/s:element
s:element name=echoStringResponse
  s:complexType
s:sequence
  s:element minOccurs=0 maxOccurs=1
  name=echoStringResult type=s:string /
/s:sequence
  /s:complexType
/s:element
s:element name=echoString_double
  s:complexType
s:sequence
  s:element minOccurs=0 maxOccurs=1 name=in0
  type=s:string /
  s:element minOccurs=0 maxOccurs=1 name=in1
  type=s:string /
/s:sequence
  /s:complexType
/s:element
s:element name=echoString_doubleResponse
  s:complexType
s:sequence
  s:element minOccurs=0 maxOccurs=1
  name=echoString_doubleResult type=s:string /
/s:sequence
  /s:complexType
/s:element
  /s:schema
/types
message name=echoStringSoapIn
  part name=parameters element=s0:echoString /
/message
message name=echoStringSoapOut
  part name=parameters element=s0:echoStringResponse /
/message
message name=echoString_doubleSoapIn
  part name=parameters element=s0:echoString_double /
/message
message name=echoString_doubleSoapOut
  part name=parameters element=s0:echoString_doubleResponse /
/message
portType name=EchoSoap
  operation name=echoString
input message=s0:echoStringSoapIn /
output message=s0:echoStringSoapOut /
  /operation
  operation name=echoString_double
input message=s0:echoString_doubleSoapIn /
output message=s0:echoString_doubleSoapOut /
  /operation
/portType
binding name=EchoSoap type=s0:EchoSoap
  soap:binding transport=http://schemas.xmlsoap.org/soap/http;
  style=document /
  operation name=echoString
soap:operation soapAction=http://tempuri.org/echoString;
  style=document /
input
  soap:body use=literal /
/input
output
  soap:body use=literal /
/output
  /operation
  operation name=echoString_double
soap:operation soapAction=http://tempuri.org/echoString_double;
  style=document /
input
  soap:body use=literal /
/input
output
  soap:body use=literal /
/output
  /operation
/binding
service name=Echo
  port name=EchoSoap binding=s0:EchoSoap
soap:address location=http://localhost/ws_axis/Echo/Echo.asmx;
  /
  /port
/service
  /definitions
 
  I don't know how to find my case in the Jira. WHere is the web site?
 
  -Henry
 
   [EMAIL PROTECTED] 5/24/2005 9:56:25 AM 
  Hi Henry!
  Can you point to the jira issue number, if you logged one. I'll see if
  I can help the Axis team with my effort. It will expedite the whole
  process if you can attach the .NET generated wsdl for the said
  interface in your reply (if it's already attached at the jira site
  then no need).
 
  Thanks
  Jayachandra
 
  On 5/24/05, Henry Lu [EMAIL PROTECTED] wrote:
   You are right. But if you look at the wsdl file generated by the
   java2wsdl of Axis1.2, it still comes out with multiple parts. If you
   look at a wsdl file  generated by .NET from the same interface, it
   implements correctly. I'd raised this issue for years and put it in
   the request a couple of times and it seems to me it has never been
  fixed
   based upon the W3C standard.
  
   -Henry
  
  
  
   **