Re: Webserivce call through Axis fails..

2008-04-10 Thread Rahil Ali
?xml version = 1.0 encoding = UTF-8?
group
ChannelIDDBGWIBK/ChannelID
Useruser1/User
/Header
MessageMESSAGE GOES HERE/Message
TitleTITLE IS HERE/Title
MobileNo00213123123/MobileNo
/SendSMSRequest
/group

  Sorry for that noob reply earlier :S. This is what I am requesting.  Please 
advice.
   
  Thanks  Regards,
   
  
Samisa Abeysinghe [EMAIL PROTECTED] wrote:
  Looking at the SOAP fault returned by service, it looks as if there is a 
problem in the message sent by the client. The service could not 
deserialize the message sent by client. Can you send the message sent by 
client?

Samisa...

Rahil Ali wrote:
 Hello Samisa,
 
 I am getting this output from tcpMon:
 
 
  xmlns:SOAP-ENV=http://schemas.xmlsoap.org/soap/envelope/;
 
 
 SOAP-ENV:Server.InternalServerError
 Exception thrown while trying to 
 deserialize the SOAP message
 
 
 
 
 I have attached my wsdl file as well... .I entered 
 http://10.10.217.134:5568/ProcessDefinitions/Testing/TestServer/GSCP/intfAuthenticateCustomer-service.serviceagent/intfwsAuthenticateCustomerEndpoint0
  
 in endpoint and 
 /ProcessDefinitions/Testing/TestServer/GSCP/intfAuthenticateCustomer-service.serviceagent/intfwsAuthenticateCustomerEndpoint0/SendSMSOp
  
 in soap-action.
 Please advice. I think that I might have left some problem in wsdl 
 file ( I removed non-required elements from wsdl ).
 
 Thanks  Regards,
 Rahil Ali
 

 */Samisa Abeysinghe /* wrote:

 Rahil Ali wrote:
  Hello Samisa,
 
  I added proxy to my code and tried again but it still failed. I
 added
  following code before function call axis2_options_get_action:
  axis2_svc_client_set_proxy_with_auth(svc_client,
  env,
  http://10.10.230.51;,
  8080,
  abcd,
  1234)
  but still its generating the same error: and fails the function
 call
  axis2_svc_client_send_receive_with_op_qname. Can this function
 fail
  due to some proxy problem...

 In oder to verify this, we should capture the message and first
 see if
 the client is sending the message correctly.

 You can either use logging module or a tool like TCPMon
 http://ws.apache.org/commons/tcpmon/download.cgi to capture the
 messages.

 Samisa...


 
  Thnaks  Regards,
  Rahil Ali
 
 
  */Rahil Ali /* wrote:
 
  Hello Samisa,
 
  Thanks once again for replying, Here is the log
  =
  [Tue Apr 8 03:51:12 2008] [debug] phase_holder.c(139) Add handler
  AddressingOutHandler to phase MessageOut
  [Tue Apr 8 03:51:12 2008] [debug] phase_holder.c(139) Add handler
  AddressingOutHandler to phase MessageOut
  [Tue Apr 8 03:51:12 2008] [debug] phase_resolver.c(117) Service
  name is : __ANONYMOUS_SERVICE__
  [Tue Apr 8 03:51:12 2008] [debug] phase_resolver.c(230) module
  name is:addressing
  [Tue Apr 8 03:51:12 2008] [debug] phase_resolver.c(325) This
  handler is trying to added to system pre defined phases , but
  those handlers are already added to global chain which run
  irrespective of the service
  [Tue Apr 8 03:51:12 2008] [debug] phase_resolver.c(230) module
  name is:addressing
  [Tue Apr 8 03:51:12 2008] [debug] phase_holder.c(139) Add handler
  AddressingOutHandler to phase MessageOut
  [Tue Apr 8 03:51:12 2008] [debug] phase_resolver.c(230) module
  name is:addressing
  [Tue Apr 8 03:51:12 2008] [debug] phase_resolver.c(230) module
  name is:addressing
  [Tue Apr 8 03:51:12 2008] [debug] phase_holder.c(139) Add handler
  AddressingOutHandler to phase MessageOut
  [Tue Apr 8 03:51:12 2008] [debug] phase_resolver.c(230) module
  name is:addressing
  [Tue Apr 8 03:51:12 2008] [debug] phase_resolver.c(325) This
  handler is trying to added to system pre defined phases , but
  those handlers are already added to global chain which run
  irrespective of the service
  [Tue Apr 8 03:51:12 2008] [debug] phase_resolver.c(230) module
  name is:addressing
  [Tue Apr 8 03:51:12 2008] [debug] phase_holder.c(139) Add handler
  AddressingOutHandler to phase MessageOut
  [Tue Apr 8 03:51:12 2008] [debug] phase_resolver.c(230) module
  name is:addressing
  [Tue Apr 8 03:51:12 2008] [debug] phase_resolver.c(230) module
  name is:addressing
  [Tue Apr 8 03:51:12 2008] [debug] phase_holder.c(139) Add handler
  AddressingOutHandler to phase MessageOut
  [Tue Apr 8 03:51:12 2008] [debug] phase_resolver.c(230) module
  name is:addressing
  [Tue Apr 8 03:51:12 2008] [debug] phase_resolver.c(325) This
  handler is trying to added to system pre defined phases , but
  those handlers are already added to global chain which run
  irrespective of the service
  [Tue Apr 8 03:51:12 2008] [debug] phase_resolver.c(230) module
  name is:addressing
  [Tue Apr 8 03:51:12 2008] [debug] phase_holder.c(139) Add handler
  AddressingOutHandler to phase MessageOut
  [Tue Apr 8 03:51:12 2008] [debug] phase_resolver.c(230) module
  name is:addressing
  [Tue Apr 8 03:51:12 2008] [debug] phase_resolver.c(230) module
  name is:addressing
  [Tue Apr 8 03:51:12 2008] [debug] phase_holder.c(139) Add handler
  

AIX 5.3.3 build

2008-04-10 Thread Helmut A. Semmelmayer
Hello, There have been several posts on this list about problems when building 
Axis2/C on AIX. We want to build a web service client in C that runs on AIX, 
but we are experiencing problemswhen we try to build Axis2/C 1.3.0. ./configure 
runs without any problems, but when werun make, we get errors about missing 
header files and typedefs like u_short: [...] gcc -DHAVE_CONFIG_H -I. -I. 
-I../../.. -I../../../include -I../../../include/platforms 
-I../../../include/platforms/unix-g -O2 -D_LARGEFILE64_SOURCE -ansi -Wall 
-Wno-implicit-function-declaration -MT uuid_gen_unix.lo-MD -MP -MF 
.deps/uuid_gen_unix.Tpo -c uuid_gen_unix.c  -DPIC -o 
.libs/uuid_gen_unix.ouuid_gen_unix.c:24:26: error: sys/sockio.h: No such file 
or directoryIn file included from 
uuid_gen_unix.c:26:/usr/include/net/if_arp.h:68: error: expected 
specifier-qualifier-list before 'u_short'/usr/include/net/if_arp.h:99: error: 
expected specifier-qualifier-list before 
'u_short'/usr/include/net/if_arp.h:103: error: expected 
specifier-qualifier-list before 'u_short'/usr/include/net/if_arp.h:107: error: 
expected specifier-qualifier-list before 
'u_short'/usr/include/net/if_arp.h:153: error: expected 
specifier-qualifier-list before 'u_char'/usr/include/net/if_arp.h:170: error: 
field 'at_iaddr' has incomplete type/usr/include/net/if_arp.h:171: error: 
expected specifier-qualifier-list before 'u_char'/usr/include/net/if_arp.h:204: 
error: field 'arp_pa' has incomplete type/usr/include/net/if_arp.h:205: error: 
field 'arp_ha' has incomplete type/usr/include/net/if_arp.h:207: error: 
expected specifier-qualifier-list before 
'u_short'/usr/include/net/if_arp.h:227: error: field 'ac_if' has incomplete 
type/usr/include/net/if_arp.h:228: error: expected specifier-qualifier-list 
before 'u_char'/usr/include/net/if_arp.h:324: error: expected 
specifier-qualifier-list before 'u_char'[...] It seems to me that the build 
environment is not configured correctly and/or ./configure does not detectAIX 
5.3.3 properly. Did anybody experience the same problem and came up with a fix 
for it? Our environment: axis2-c 1.3.0AIX 5.3.3gcc 3.3.2 Kind regards,Helmut 
Semmelmayer
_
News, entertainment and everything you care about at Live.com. Get it now!
http://www.live.com/getstarted.aspx

Re: Webserivce call through Axis fails..

2008-04-10 Thread Samisa Abeysinghe

Rahil Ali wrote:

?xml version = 1.0 encoding = UTF-8?
group
ChannelIDDBGWIBK/ChannelID
Useruser1/User
/Header
MessageMESSAGE GOES HERE/Message
TitleTITLE IS HERE/Title
MobileNo00213123123/MobileNo
/SendSMSRequest
/group
Sorry for that noob reply earlier :S. This is what I am requesting.  
Please advice.


The SOAP envelope is missing. Are you making a REST call?

Samisa...

 
Thanks  Regards,
 


*/Samisa Abeysinghe [EMAIL PROTECTED]/* wrote:

Looking at the SOAP fault returned by service, it looks as if
there is a
problem in the message sent by the client. The service could not
deserialize the message sent by client. Can you send the message
sent by
client?

Samisa...

Rahil Ali wrote:
 Hello Samisa,

 I am getting this output from tcpMon:



 xmlns:SOAP-ENV=http://schemas.xmlsoap.org/soap/envelope/;


 SOAP-ENV:Server.InternalServerError
 Exception thrown while trying to
 deserialize the SOAP message




 I have attached my wsdl file as well... .I entered


http://10.10.217.134:5568/ProcessDefinitions/Testing/TestServer/GSCP/intfAuthenticateCustomer-service.serviceagent/intfwsAuthenticateCustomerEndpoint0

 in endpoint and


/ProcessDefinitions/Testing/TestServer/GSCP/intfAuthenticateCustomer-service.serviceagent/intfwsAuthenticateCustomerEndpoint0/SendSMSOp

 in soap-action.
 Please advice. I think that I might have left some problem in wsdl
 file ( I removed non-required elements from wsdl ).

 Thanks  Regards,
 Rahil Ali


 */Samisa Abeysinghe /* wrote:

 Rahil Ali wrote:
  Hello Samisa,
 
  I added proxy to my code and tried again but it still failed. I
 added
  following code before function call axis2_options_get_action:
  axis2_svc_client_set_proxy_with_auth(svc_client,
  env,
  http://10.10.230.51;,
  8080,
  abcd,
  1234)
  but still its generating the same error: and fails the function
 call
  axis2_svc_client_send_receive_with_op_qname. Can this function
 fail
  due to some proxy problem...

 In oder to verify this, we should capture the message and first
 see if
 the client is sending the message correctly.

 You can either use logging module or a tool like TCPMon
 http://ws.apache.org/commons/tcpmon/download.cgi to capture the
 messages.

 Samisa...


 
  Thnaks  Regards,
  Rahil Ali
 
 
  */Rahil Ali /* wrote:
 
  Hello Samisa,
 
  Thanks once again for replying, Here is the log
  =
  [Tue Apr 8 03:51:12 2008] [debug] phase_holder.c(139) Add handler
  AddressingOutHandler to phase MessageOut
  [Tue Apr 8 03:51:12 2008] [debug] phase_holder.c(139) Add handler
  AddressingOutHandler to phase MessageOut
  [Tue Apr 8 03:51:12 2008] [debug] phase_resolver.c(117) Service
  name is : __ANONYMOUS_SERVICE__
  [Tue Apr 8 03:51:12 2008] [debug] phase_resolver.c(230) module
  name is:addressing
  [Tue Apr 8 03:51:12 2008] [debug] phase_resolver.c(325) This
  handler is trying to added to system pre defined phases , but
  those handlers are already added to global chain which run
  irrespective of the service
  [Tue Apr 8 03:51:12 2008] [debug] phase_resolver.c(230) module
  name is:addressing
  [Tue Apr 8 03:51:12 2008] [debug] phase_holder.c(139) Add handler
  AddressingOutHandler to phase MessageOut
  [Tue Apr 8 03:51:12 2008] [debug] phase_resolver.c(230) module
  name is:addressing
  [Tue Apr 8 03:51:12 2008] [debug] phase_resolver.c(230) module
  name is:addressing
  [Tue Apr 8 03:51:12 2008] [debug] phase_holder.c(139) Add handler
  AddressingOutHandler to phase MessageOut
  [Tue Apr 8 03:51:12 2008] [debug] phase_resolver.c(230) module
  name is:addressing
  [Tue Apr 8 03:51:12 2008] [debug] phase_resolver.c(325) This
  handler is trying to added to system pre defined phases , but
  those handlers are already added to global chain which run
  irrespective of the service
  [Tue Apr 8 03:51:12 2008] [debug] phase_resolver.c(230) module
  name is:addressing
  [Tue Apr 8 03:51:12 2008] [debug] phase_holder.c(139) Add handler
  AddressingOutHandler to phase MessageOut
  [Tue Apr 8 03:51:12 2008] [debug] phase_resolver.c(230) module
  name is:addressing
  [Tue Apr 8 03:51:12 2008] [debug] phase_resolver.c(230) module
  name is:addressing
  [Tue Apr 8 03:51:12 2008] [debug] phase_holder.c(139) Add handler
  AddressingOutHandler to phase MessageOut
  [Tue Apr 8 03:51:12 2008] [debug] phase_resolver.c(230) module
  name is:addressing
  [Tue Apr 8 03:51:12 2008] [debug] phase_resolver.c(325) This
  handler is trying to added to system pre defined phases , 

Re: AIX 5.3.3 build

2008-04-10 Thread Samisa Abeysinghe

Helmut A. Semmelmayer wrote:

Hello,
 
There have been several posts on this list about problems when 
building Axis2/C on AIX.
 
We want to build a web service client in C that runs on AIX, but we 
are experiencing problems
when we try to build Axis2/C 1.3.0. ./configure runs without any 
problems, but when we
run make, we get errors about missing header files and typedefs like 
u_short:
 
[...]
 gcc -DHAVE_CONFIG_H -I. -I. -I../../.. -I../../../include 
-I../../../include/platforms -I../../../include/platforms/unix
-g -O2 -D_LARGEFILE64_SOURCE -ansi -Wall 
-Wno-implicit-function-declaration -MT uuid_gen_unix.lo
-MD -MP -MF .deps/uuid_gen_unix.Tpo -c uuid_gen_unix.c  -DPIC -o 
.libs/uuid_gen_unix.o

uuid_gen_unix.c:24:26: error: sys/sockio.h: No such file or directory
In file included from uuid_gen_unix.c:26:
/usr/include/net/if_arp.h:68: error: expected specifier-qualifier-list 
before 'u_short'
/usr/include/net/if_arp.h:99: error: expected specifier-qualifier-list 
before 'u_short'
/usr/include/net/if_arp.h:103: error: expected 
specifier-qualifier-list before 'u_short'
/usr/include/net/if_arp.h:107: error: expected 
specifier-qualifier-list before 'u_short'
/usr/include/net/if_arp.h:153: error: expected 
specifier-qualifier-list before 'u_char'

/usr/include/net/if_arp.h:170: error: field 'at_iaddr' has incomplete type
/usr/include/net/if_arp.h:171: error: expected 
specifier-qualifier-list before 'u_char'

/usr/include/net/if_arp.h:204: error: field 'arp_pa' has incomplete type
/usr/include/net/if_arp.h:205: error: field 'arp_ha' has incomplete type
/usr/include/net/if_arp.h:207: error: expected 
specifier-qualifier-list before 'u_short'

/usr/include/net/if_arp.h:227: error: field 'ac_if' has incomplete type
/usr/include/net/if_arp.h:228: error: expected 
specifier-qualifier-list before 'u_char'
/usr/include/net/if_arp.h:324: error: expected 
specifier-qualifier-list before 'u_char'

[...]
 
It seems to me that the build environment is not configured correctly 
and/or ./configure does not detect

AIX 5.3.3 properly.
 
Did anybody experience the same problem and came up with a fix for it?


More than a config problem, it looks to me as if this is a source problem.
Where is sockio.h located in AIX? Is there a sockio.h header at all on AIX?

Samisa...


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



Re: Webserivce call through Axis fails..

2008-04-10 Thread Rahil Ali
I tried with new Request here is the REQ/RESP
   
  REQUEST:
  SOAP-ENV:Envelope xmlns:SOAP-ENV=http://schemas.xmlsoap.org/soap/envelope/; 
xmlns:SOAP-ENC=http://schemas.xmlsoap.org/soap/encoding/; 
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; 
xmlns:xsd=http://www.w3.org/2001/XMLSchema; 
SOAP-ENV:encodingStyle=http://schemas.xmlsoap.org/soap/encoding/;
  SOAP-ENV:Body
   group
SendSMSRequest 
xmlns=http://xmlns.dohabank.com/namespace/dbframework/UtilityServicesSchema.xsd;
Header 
xmlns:ns=http://xmlns.dohabank.com/namespace/dbframework/HeaderSchema.xsd;
  ChannelID xsi:type=xsd:stringCHL1/ChannelID
  User xsi:type=xsd:stringUID1/User
/Header
  Message xsi:type=xsd:stringMSG MSG SMSG/Message
  Title xsi:type=xsd:stringTITLE/Title
  MobileNo xsi:type=xsd:string1324/MobileNo
/SendSMSRequest
/group
  /SOAP-ENV:Body
/SOAP-ENV:Envelope
   
  RESPONSE:
  ?xml version=1.0 encoding=UTF-8?
SOAP-ENV:Envelope xmlns:SOAP-ENV=http://schemas.xmlsoap.org/soap/envelope/;
  SOAP-ENV:Body
SOAP-ENV:Fault
  faultcode xmlns=SOAP-ENV:Server/faultcode
  faultstring xmlns=Internal Error/faultstring
  detail xmlns=
Data xmlns=
  ns0:SendSMSRequest xmlns:ns0= 
http://xmlns.dohabank.com/namespace/dbframework/GSCP/1174744476015/1175527748734;
parameters xmlns=
  group xmlns:SOAP-ENC=http://schemas.xmlsoap.org/soap/encoding/; 
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; 
xmlns:xsd=http://www.w3.org/2001/XMLSchema; xmlns=SendSMSRequest 
xmlns=http://xmlns.dohabank.com/namespace/dbframework/UtilityServicesSchema.xsd;
Header 
xmlns:ns=http://xmlns.dohabank.com/namespace/dbframework/HeaderSchema.xsd;
  ChannelID xsi:type=xsd:stringCHL1/ChannelID  User 
xsi:type=xsd:stringUID1/User/Header  Message 
xsi:type=xsd:stringMSG MSG SMSG/Message  Title 
xsi:type=xsd:stringTITLE/Title  MobileNo 
xsi:type=xsd:string1324/MobileNo/SendSMSRequest/group
/parameters
  /ns0:SendSMSRequest
/Data
  /detail
/SOAP-ENV:Fault
  /SOAP-ENV:Body
/SOAP-ENV:Envelope
   
   
  Please advice where am I going wrong...
   
  Thanks  Regards,
  Rahil

Samisa Abeysinghe [EMAIL PROTECTED] wrote:
  Rahil Ali wrote:
 
 
 DBGWIBK
 user1
 
 MESSAGE GOES HERE
 
 00213123123
 
 
 Sorry for that noob reply earlier :S. This is what I am requesting. 
 Please advice.

The SOAP envelope is missing. Are you making a REST call?

Samisa...

 
 Thanks  Regards,
 

 */Samisa Abeysinghe /* wrote:

 Looking at the SOAP fault returned by service, it looks as if
 there is a
 problem in the message sent by the client. The service could not
 deserialize the message sent by client. Can you send the message
 sent by
 client?

 Samisa...

 Rahil Ali wrote:
  Hello Samisa,
 
  I am getting this output from tcpMon:
 
 
 
  xmlns:SOAP-ENV=http://schemas.xmlsoap.org/soap/envelope/;
 
 
  SOAP-ENV:Server.InternalServerError
  Exception thrown while trying to
  deserialize the SOAP message
 
 
 
 
  I have attached my wsdl file as well... .I entered
 
 http://10.10.217.134:5568/ProcessDefinitions/Testing/TestServer/GSCP/intfAuthenticateCustomer-service.serviceagent/intfwsAuthenticateCustomerEndpoint0

  in endpoint and
 
 /ProcessDefinitions/Testing/TestServer/GSCP/intfAuthenticateCustomer-service.serviceagent/intfwsAuthenticateCustomerEndpoint0/SendSMSOp

  in soap-action.
  Please advice. I think that I might have left some problem in wsdl
  file ( I removed non-required elements from wsdl ).
 
  Thanks  Regards,
  Rahil Ali
 
 
  */Samisa Abeysinghe /* wrote:
 
  Rahil Ali wrote:
   Hello Samisa,
  
   I added proxy to my code and tried again but it still failed. I
  added
   following code before function call axis2_options_get_action:
   axis2_svc_client_set_proxy_with_auth(svc_client,
   env,
   http://10.10.230.51;,
   8080,
   abcd,
   1234)
   but still its generating the same error: and fails the function
  call
   axis2_svc_client_send_receive_with_op_qname. Can this function
  fail
   due to some proxy problem...
 
  In oder to verify this, we should capture the message and first
  see if
  the client is sending the message correctly.
 
  You can either use logging module or a tool like TCPMon
  http://ws.apache.org/commons/tcpmon/download.cgi to capture the
  messages.
 
  Samisa...
 
 
  
   Thnaks  Regards,
   Rahil Ali
  
  
   */Rahil Ali /* wrote:
  
   Hello Samisa,
  
   Thanks once again for replying, Here is the log
   =
   [Tue Apr 8 03:51:12 2008] [debug] phase_holder.c(139) Add handler
   AddressingOutHandler to phase MessageOut
   [Tue Apr 8 03:51:12 2008] [debug] phase_holder.c(139) Add handler
   AddressingOutHandler to phase MessageOut
   [Tue Apr 8 03:51:12 2008] [debug] phase_resolver.c(117) Service
   name is : __ANONYMOUS_SERVICE__
   [Tue Apr 8 03:51:12 2008] [debug] phase_resolver.c(230) module
   name is:addressing
   [Tue Apr 8 03:51:12 

Web service call fails - Code Generation problem

2008-04-10 Thread Rahil Ali
Hello Everyone,
   
  I am having some problems:
  1 - I used a WSDl which has around 15-18 operations, I generated code for it 
and it was generated properly. When I try to compile them after writing a small 
code(which only calls one of the operations) it gave me hell of errors :S. All 
of the errors were from the generated files. I am attaching the wsdl and error 
returned... 
  gcc -o hello -I/usr/local/axis2c/include/axis2-1.3.0/ -L$AXIS2C_HOME/lib 
-laxutil -laxis2_axiom -laxis2_parser -laxis2_engine -lpthread 
-laxis2_http_sender -laxis2_http_receiver *.c -ldl -Wl,--rpath 
-Wl,$AXIS2C_HOME/lib
  --
  adb_Account.h:642: warning: `cdecl' attribute only applies to function types
adb_Account.h:642: error: syntax error before adb_Account_get_Customer
adb_Account.h:657: error: syntax error before Customer_type0
adb_Account.c:112: error: syntax error before Customer_type0
adb_Account.c:112: warning: no semicolon at end of struct or union
adb_Account.c:293: error: syntax error before '}' token
adb_Account.c: In function `adb_Account_create':
adb_Account.c:581: error: invalid application of `sizeof' to incomplete type 
`adb_Account.h'
adb_Account.c:590: error: invalid application of `sizeof' to incomplete type 
`adb_Account.h'
adb_Account.c:592: error: dereferencing pointer to incomplete type
adb_Account.c:593: error: dereferencing pointer to incomplete type
adb_Account.c:594: error: dereferencing pointer to incomplete type
adb_Account.c:595: error: dereferencing pointer to incomplete type
adb_Account.c:596: error: dereferencing pointer to incomplete type
adb_Account.c:597: error: dereferencing pointer to incomplete type
adb_Account.c:598: error: dereferencing pointer to incomplete type
adb_Account.c:599: error: dereferencing pointer to incomplete type
adb_Account.c:600: error: dereferencing pointer to incomplete type
adb_Account.c:601: error: dereferencing pointer to incomplete type
adb_Account.c:602: error: dereferencing pointer to incomplete type
adb_Account.c:603: error: dereferencing pointer to incomplete type
adb_Account.c:604: error: dereferencing pointer to incomplete type
adb_Account.c:60..
   
  It shows error on every line... :S
   
   
   
  2 - To overcome this I removed un-necessary operations from the WSDL and 
generated code, code generated properly and compiled as well. When I try to run 
that service in one of my webservice hosted it print this in the log:
  Thu Apr 10 01:33:30 2008] [debug] phase_holder.c(139) Add handler 
AddressingOutHandler to phase MessageOut
[Thu Apr 10 01:33:30 2008] [debug] phase_holder.c(139) Add handler 
AddressingOutHandler to phase MessageOut
[Thu Apr 10 01:33:30 2008] [debug] phase_resolver.c(117) Service name is : 
__ANONYMOUS_SERVICE__
[Thu Apr 10 01:33:30 2008] [debug] phase_resolver.c(230) module name 
is:addressing
[Thu Apr 10 01:33:30 2008] [debug] phase_resolver.c(325) This handler is trying 
to added to system pre defined phases , but those handlers are already added to 
global chain which run irrespective of the service
[Thu Apr 10 01:33:30 2008] [debug] phase_resolver.c(230) module name 
is:addressing
[Thu Apr 10 01:33:30 2008] [debug] phase_holder.c(139) Add handler 
AddressingOutHandler to phase MessageOut
[Thu Apr 10 01:33:30 2008] [debug] phase_resolver.c(230) module name 
is:addressing
[Thu Apr 10 01:33:30 2008] [debug] phase_resolver.c(230) module name 
is:addressing
[Thu Apr 10 01:33:30 2008] [debug] phase_holder.c(139) Add handler 
AddressingOutHandler to phase MessageOut
[Thu Apr 10 01:33:30 2008] [debug] phase_resolver.c(230) module name 
is:addressing
[Thu Apr 10 01:33:30 2008] [debug] phase_resolver.c(325) This handler is trying 
to added to system pre defined phases , but those handlers are already added to 
global chain which run irrespective of the service
[Thu Apr 10 01:33:30 2008] [debug] phase_resolver.c(230) module name 
is:addressing
[Thu Apr 10 01:33:30 2008] [debug] phase_holder.c(139) Add handler 
AddressingOutHandler to phase MessageOut
[Thu Apr 10 01:33:30 2008] [debug] phase_resolver.c(230) module name 
is:addressing
[Thu Apr 10 01:33:30 2008] [debug] phase_resolver.c(230) module name 
is:addressing
[Thu Apr 10 01:33:30 2008] [debug] phase_holder.c(139) Add handler 
AddressingOutHandler to phase MessageOut
[Thu Apr 10 01:33:30 2008] [debug] phase_resolver.c(230) module name 
is:addressing
[Thu Apr 10 01:33:30 2008] [debug] phase_resolver.c(325) This handler is trying 
to added to system pre defined phases , but those handlers are already added to 
global chain which run irrespective of the service
[Thu Apr 10 01:33:30 2008] [debug] phase_resolver.c(230) module name 
is:addressing
[Thu Apr 10 01:33:30 2008] [debug] phase_holder.c(139) Add handler 
AddressingOutHandler to phase MessageOut
[Thu Apr 10 01:33:30 2008] [debug] phase_resolver.c(230) module name 
is:addressing
[Thu Apr 10 01:33:30 2008] [debug] phase_resolver.c(230) module name 
is:addressing
[Thu Apr 10 01:33:30 2008] [debug] 

Re: axis2_http_server fails on solaris9

2008-04-10 Thread Manfred Bohlmann
Hi Samisa,

yes, I'd like to do so. How can I contribute? Send the source changes by email? 
diff format OK?


Manfred

 -Ursprüngliche Nachricht-
 Von: Apache AXIS C User List axis-c-user@ws.apache.org
...
 
 Manfred Bohlmann wrote:
  Hi all,
 
  the problem is solved. It was a bug in my scandir() replacement. 
 
 
  Thank you for spending the time to help me!

 
 That is really good news. As I understand, you did some fixes in this 
 porting process. Would you like to contribute those changes?
 
 Thanks,
 Samisa...
 
 
___
Schon gehört? Der neue WEB.DE MultiMessenger kann`s mit allen: 
http://www.produkte.web.de/messenger/?did=3016


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



Re: Memory leak in mod_axis2?

2008-04-10 Thread Samisa Abeysinghe

Alex,
   In the mean time, try with libxml2 paarser.
Samisa...

Samisa Abeysinghe wrote:

Samisa Abeysinghe wrote:


Alex Bolgarov wrote:
On Wed, Apr 9, 2008 at 3:36 PM, Samisa Abeysinghe [EMAIL PROTECTED] 
wrote:
 

In the mean time, please send the valgrind log.



I did send the valgrind log to the list 


Sorry, I missed it (was a bit sleepy at the time I replied ;) )

Looking at the log, it is a newly introduced one, with Guththila 
parser. I remember Lahuri mentioning about this leak once, and I was 
under the impression that this was fixed. Anyway I will have a look.


I had a more detailed look into the code and there are some leaks to 
be fixed. I am curretly at ApacheCon and do not have access to a Linux 
box, and would only have time to fix this next week. Can someone 
please look into this in the mean time.


Thanks,
Samisa...


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






--
Samisa Abeysinghe 
Software Architect; WSO2 Inc.


http://www.wso2.com/ - Oxygenating the Web Service Platform.


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



How are nullable values handled?

2008-04-10 Thread McCullough, Ryan
How are nullable types handled in Axis1 C++?

 

For instance, how could I set an int/boolean/date/datetime attribute to
xsi:nill=true?

 

-Ryan

 

Ryan McCullough | RightNow Technologies | Integration Tools Engineer

406-556-3162 office | Bozeman, MT |  mailto:[EMAIL PROTECTED]
[EMAIL PROTECTED] |  http://www.rightnow.com/
http://www.rightnow.com

 



smime.p7s
Description: S/MIME cryptographic signature


axis webservice special requirements

2008-04-10 Thread Pj
Hi 

 

I am writing a very simple Java service which processes a database at
regular 5 second intervals see below.

As well as processing at regular intervals, I need to add a SOAP interface
that wakes up my program and processes that database.

 

Is it possible to do the whole project with AXIS? If so how do I get the
class to load up at AXIS startup to start my run method? With classloader
perhaps?

 

Thanks for you help, I am a newbie when it comes to Axis.

Regards,

Pj. J

 

 

public class PISAF {

  private Integer serviceSleepTime = 5000;

 

  

/* Test Stub */

public static void main(String[] args) 

{

  PISAF p = new PISAF();

  p.processDatabaseEntries();

}



/**

 * Method run

 *

 * This Method will do the Primary work for the Service

 * @author Pj

 * @return void

 */

private void run() 

{



while (true) {



processDatabaseEntries();

try {   

/* After Processing, Sleep the Thread */

Thread.sleep(this.serviceSleepTime);

}

catch(InterruptedException ex) {

System.err.println(Thread Sleep Problem);

}

}



}/* End Method run */


No virus found in this outgoing message.
Checked by AVG. 
Version: 7.5.519 / Virus Database: 269.22.11/1368 - Release Date: 9/04/2008
4:20 PM
 


Re: Configuring a whitelist

2008-04-10 Thread Vikas Gujjar
Hi Tony,

I have quite successfully used handlers for this.

You may want to use the pre-configured SimpleAuthentication and
SimpleAuthorization Handlers.
http://ws.apache.org/axis/java/reference.html#Pre-ConfiguredAxisComponentsReference


Thanks,
Vikas

On Wed, Apr 9, 2008 at 8:11 AM, Tony Thompson [EMAIL PROTECTED]
wrote:

  I am using Axis Java 1.4.  Is there any way I can add some simple
 security like a whitelist to my web services so that only certain clients
 can connect?  If not, is this in Axis2 by any chance?

 Thanks
 Tony

 This message (and any associated files) is intended only for the
 use of the individual or entity to which it is addressed and may
 contain information that is confidential, subject to copyright or
 constitutes a trade secret. If you are not the intended recipient
 you are hereby notified that any dissemination, copying or
 distribution of this message, or files associated with this message,
 is strictly prohibited. If you have received this message in error,
 please notify us immediately by replying to the message and deleting
 it from your computer. Messages sent to and from Stoneware, Inc.
 may be monitored.




-- 
Thanks,
Vikas C Gujjar


Usage of soap actor

2008-04-10 Thread Erwin Reinhoud
 
Hello All,

A while ago i got some feedback that axis2 does not yet support the
usage of soap actors in relation to ws-addressing headers. Is this still
the case? I am also wondering how this works with ws-Security (rampart).
If i have intermediairs that need to handle some security header and
send the message to next hop is this functionality supported bij rampart
by usage of the soap actor? Does anyone know where these kind of
scenarios are described in detail (simular to WS-I RSP WG Usage
Scenarios but then only ws-security with multiple hops)?

Thanks in advance.
Kind regards,

Erwin

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



Re: [Axis2 1.3] Content of SOAP Body gets changed after serializeAndConsume

2008-04-10 Thread stlecho

Hi,

I've found a workaround to solve this issue. Adding writer.flush(); in
ElementImpl.internalSerialize solves the problem. Although this issue is
linked with release 1.2.5 of axiom-dom, I'm curious if anybody else had the
same issue.

Regards, Stefan.


stlecho wrote:
 
 Hi,
 
 I'm using Axis2 v1.3 and I've remarked that sometimes the SOAP Body is
 modified after the call to element.serializeAndConsume(bytesOut, format).
 This call is performed in SOAPMessageFormatter.getBytes(MessageContext
 msgCtxt, OMOutputFormat format).
 
 The SOAP Body that is being changed originally contains
 clientnationalNumber.../nationalNumberenterpriseNumber.../enterpriseNumbereid
 /callerId.../callerIdlanguagefr/language/client. After the
 element.serializeAndConsume(bytesOut, format) call this Body is
 transformed to client.../ent or client.../lient. The client end
 tag is in this case not correct.
 
 The annoying thing is that this transformation happens from time to time
 and is completely random, except that it's always the client element that
 is affected.
 
 Any help with this issue would be highly appreciated :o).
 
 Regards, Stefan.
 

-- 
View this message in context: 
http://www.nabble.com/-Axis2-1.3--Content-of-SOAP-Body-gets-changed-after-serializeAndConsume-tp16585918p16607899.html
Sent from the Axis - User mailing list archive at Nabble.com.


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



Use GZIP on Client and Server Code

2008-04-10 Thread juliocest

Hi,

I would like to know if it is possible to use GZIP both on server and client
code, with Axis2. 
I know that in client side we can use, 

options.setProperty(HTTPConstants.MC_ACCEPT_GZIP, Boolean.TRUE);
options.setProperty(HTTPConstants.MC_GZIP_REQUEST, Boolean.TRUE);

in order to set gizp compression.

For example, I have a client sending soap requests to a service with
calculate big fatorial numbers. My response could be large and I want that
my server side code zip soap responses to send back to my client.

How can I set gzip compression on server side? 

Thanks.

Julio
-- 
View this message in context: 
http://www.nabble.com/Use-GZIP-on-Client-and-Server-Code-tp16607975p16607975.html
Sent from the Axis - User mailing list archive at Nabble.com.


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



Re: Use GZIP on Client and Server Code

2008-04-10 Thread Davanum Srinivas

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

If the server gets a gzip request, it automatically sends back gzipped response 
(if it doesn't it's a bug)

- -- dims

juliocest wrote:
| Hi,
|
| I would like to know if it is possible to use GZIP both on server and client
| code, with Axis2.
| I know that in client side we can use,
|
| options.setProperty(HTTPConstants.MC_ACCEPT_GZIP, Boolean.TRUE);
| options.setProperty(HTTPConstants.MC_GZIP_REQUEST, Boolean.TRUE);
|
| in order to set gizp compression.
|
| For example, I have a client sending soap requests to a service with
| calculate big fatorial numbers. My response could be large and I want that
| my server side code zip soap responses to send back to my client.
|
| How can I set gzip compression on server side?
|
| Thanks.
|
| Julio
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.5 (Cygwin)

iD4DBQFH/gW/gNg6eWEDv1kRApJXAJ0RnmKkor030oLw1781jAmvuJdoiACY2hYI
VqhTuh/7eYNukiV+6fME1g==
=/Z43
-END PGP SIGNATURE-

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



Clientside or serverside?

2008-04-10 Thread Christian Mielke
Hello,
I am writing a handler for my Axis 2.1.3 environment. The handler should only 
be used in the inflow of the server. Is there a possibility to see in the 
MessageContext if I am on clientside or on serverside?
Greetings
Christian


Re: Just a small client sample would really be great !

2008-04-10 Thread Jacques46

This is getting really frustrating...  -(

I downloaded the snapshot distribution from here (by the way it was the
april 10 version):

http://people.apache.org/dist/axis2/nightly/distribution-SNAPSHOT-bin.zip
http://people.apache.org/dist/axis2/nightly/distribution-SNAPSHOT-bin.zip 

I dropped it to a folder on my drive.

I updated my AXIS2_HOME environment variable to point to that folder.

Opened a DOS prompt, went to the folder's bin sub-folder, and typed :

wsdl2java -u -uri http://api.betdaq.com/v2.0/API.wsdl

This created a src sub-tree.  In
\src\com\globalbettingexchange\www\externalapi, I found all the generated
classes.  I copied the \com folder to my Eclipse project.

I then copied all the jars from the \lib sub-folder of the distribution to
my project's lib directory, and updated the build path in the project
properties to include those jars.

Tried compiling : came up with a bunch of errors.

The first one says :

[javac]
...\com\globalbettingexchange\www\externalapi\ReadOnlyServiceStub.java:413:
cannot find symbol
[javac] symbol  : method
receiveResultGetPrices(com.globalbettingexchange.www.externalapi.GetPricesResponseE)
[javac] location: class
com.globalbettingexchange.www.externalapi.ReadOnlyServiceCallbackHandler
[javac] callback.receiveResultGetPrices(

Sure enough, this receiveResultGetPrices method is nowhere to be found in
any of the source files generated by wsdl2java.

Could it be that the snapshot of April 10th has a bug ?



alpatino2 wrote:
 
 I noticed a different behavior using axis2-SNAPSHOT, let me show you a
 wireshark tcpdump, you can download it here:
 http://www.4shared.com/file/43614007/1e675e4b/soaprequest.html
 
 As you can see the soap body is empty but the info is inside de SOAP
 Header, could you try to run the program with the SANPSHOT version?
 
 Also please update your source code with the right class names,
 because you know the newest axis2 version uses a new naming schema.
 
 Here is the sample code I tried:
 http://www.4shared.com/file/43614271/bbc1b9d7/BetdaqClient.html
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Just-a-small-client-sample-would-really-be-great-%21-tp16532618p16608590.html
Sent from the Axis - User mailing list archive at Nabble.com.


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



RE: Axis vs. Axis2 web services

2008-04-10 Thread Patel, Trupti
Does anyone have any experience with migrating Apache Axis apps to
Axis2?  We are currently running Axis1 and would like to upgrade to
Axis2.   Also, does anyone have any instructions on how to run a web
service in which the client is running Axis2 and the server end is
running Axis1. 

Any tips or thoughts would be very much appreciated.

Thanks,
Trupti 
 


[axis2] Detail in SOAP fault

2008-04-10 Thread Radoslaw Adamiak
Hi

I want to send detail info in SOAP fault message.
Then only method in AxisFault class is setDedail(OMElement). But then,
my message looks e.g. like this:

...
soapenv:Body
soapenv:Fault
  faultcodesoapenv:Client/faultcode
  faultstringAuthentication failed./faultstring
  detail
  b:myDetail xmlns:b=MyServiceNS
b:code4/b:code
b:messageGiven authId is not valid./b:message
  /b:myDetail
  /detail
/soapenv:Fault
/soapenv:Body
...

but I want to hold my detail in this way (namespaces can be omit):

...
soapenv:Body
soapenv:Fault
  faultcodesoapenv:Client/faultcode
  faultstringAuthentication failed./faultstring
  detail
b:code xmlns:b=MyServiceNS4/b:code
b:message xmlns:b=MyServiceNSGiven authId is not valid./b:message
  /detail
/soapenv:Fault
/soapenv:Body
...

without my OMElement (in this case myDetail) that I need to pass to
setDetail(...) method.
Is it possible using AxisFault class?

getDetail() returns null. Is it a bug? Why getDetail() doesn't return
SOAP detail element?
If it would be like this, then there is no problem to compose messege
as I want.

BR
-- 
zolv


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



Simple Rampart 1.3 example for Axis2-1.3.

2008-04-10 Thread Etches, Adam (GE Infra, Energy)
Hi List,

 

I have being trying out some simple examples with Axis2-1.3 and Rampart
1.3 with out any luck. I have taken an example from the Rampart 1.3
samples and I have been trying to invoke the service from SOAPUI (as
this is what we use for testing). When I try this I get the following
error:

 

org.apache.axis2.AxisFault: WSDoAllReceiver: Incoming message does not
contain required Security header

 

Does anyone have any ideas why? I have included my rampart config from
the services.xml and soap message below which does have a security
header. The WSDoAllReceiver class is distributed with rampart I and
can't find the source to download so I can't debug it.

 

The service I'm using has the following configuration in the
services.xml file:

 

 

...

module ref=rampart /



   parameter name=InflowSecurity

action

  itemsUsernameToken Timestamp/items

 
passwordCallbackClassgss.webservice.samples.GSSLoginHandler/passwordC
allbackClass

/action

  /parameter--

...

 

 

 

The Soap message I'm trying from SOAP UI is:

 

soap:Envelope xmlns:soap=http://www.w3.org/2003/05/soap-envelope; 

xmlns:xsd=http://samples.webservice.gss/xsd; 

 
xmlns:wsse=http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wsse
curity-secext-1.0.xsd

   soap:Header

  wsse:Security soap:mustUnderstand=1

   wsse:UsernameToken

 wsse:Usernameuser1/wsse:Username

 wsse:Passwordtest/wsse:Password

  /wsse:UsernameToken

   /wsse:Security

/soap:Header

 

   soap:Body

  ... 

 

thanks in advance 

Adam.



AdminAgent: change the serviceDir access to Protected?

2008-04-10 Thread Guillaume Cauchon
 

I'm working on a custom admin servlet that requires file access to the
Service Repository. I can't use the already define instance as it is
private to AdminAgent; would it be possible to change the access to
protected? If not I guess I copy the code to create the same File
instance in my agent class.

 

Thanks, Guillaume

 

/*

 * Licensed to the Apache Software Foundation (ASF) under one

 * or more contributor license agreements. See the NOTICE file

 * distributed with this work for additional information

 * regarding copyright ownership. The ASF licenses this file

 * to you under the Apache License, Version 2.0 (the

 * License); you may not use this file except in compliance

 * with the License. You may obtain a copy of the License at

 *

 * http://www.apache.org/licenses/LICENSE-2.0

 *

 * Unless required by applicable law or agreed to in writing,

 * software distributed under the License is distributed on an

 * AS IS BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY

 * KIND, either express or implied. See the License for the

 * specific language governing permissions and limitations

 * under the License.

 */

 

package org.apache.axis2.transport.http;

 

import org.apache.axis2.AxisFault;

...

 

/**

 * Provides methods to process axis2 admin requests.

 */

public class AdminAgent extends AbstractAgent {

private static final Log log =
LogFactory.getLog(AbstractAgent.class);

 

...

 

private File serviceDir;

 

...

}

 



Guillaume Cauchon | DataDirect Technologies inc.

 -email: 

[EMAIL PROTECTED]

 -mobile: 

418.952-7357

 -work: 

418.649-1551

 



Re: Just a small client sample would really be great !

2008-04-10 Thread Jacques46

By the way, if you have the time Alberto, maybe you could subscribe to
nabble.com, I find the mailing list to be slow, whereas posts to the list
through Nabble can be seen instantaneously on the web site...

Here's this thread's url:

http://www.nabble.com/Just-a-small-client-sample-would-really-be-great-%21-tt16532618.html#a16532618
http://www.nabble.com/Just-a-small-client-sample-would-really-be-great-%21-tt16532618.html#a16532618
 
-- 
View this message in context: 
http://www.nabble.com/Just-a-small-client-sample-would-really-be-great-%21-tp16532618p16609469.html
Sent from the Axis - User mailing list archive at Nabble.com.


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



[U] RE: How to retain type info in soap?

2008-04-10 Thread Higdon, Aaron C Mr CTR USA TRADOC USAAC
UNCLASSIFIED


I managed to get the types into the message using the ServiceClient, but
I cannot get the declared namespaces to show up. Here is my code if it
helps you out:
public Object invoke(String methodName, Object[] args) throws Exception
{
String response = null;
try {
SOAPFactory omFactory =
OMAbstractFactory.getSOAP11Factory();
SOAPEnvelope envelope = omFactory.getDefaultEnvelope();

envelope.declareNamespace(http://schemas.xmlsoap.org/soap/envelope/;,
SOAP-ENV);

envelope.declareNamespace(http://schemas.xmlsoap.org/soap/encoding/;,
SOAP-ENC);

envelope.declareNamespace(http://www.w3.org/2001/XMLSchema;, xsd);
OMNamespace nsXsi =
envelope.declareNamespace(http://www.w3.org/2001/XMLSchema-instance;,
xsi);
OMNamespace nsService =
envelope.declareNamespace(urn:ermservice, ns1);

OMFactory fac = OMAbstractFactory.getOMFactory();

OMElement method = fac.createOMElement(methodName,
nsService);
envelope.getBody().addChild(method);

OMElement value = fac.createOMElement(user-String,
null);
value.addChild(fac.createOMText(this.userName));
value.addAttribute(type, xsd:string, nsXsi);

method.addChild(value);

MessageContext msgContext = new MessageContext();
msgContext.setEnvelope(envelope);   

Options options = new Options();
options.setTo(new EndpointReference(
this.url.toExternalForm() ));

options.setTransportInProtocol(org.apache.axis2.Constants.TRANSPORT_HTTP
);
options.setProperty(HTTPConstants.CHUNKED, false);

System.out.println(envelope.toString());//correctly
shows all declared namespaces
ServiceClient sender = new ServiceClient();
sender.setOptions(options);

OMElement result = sender.sendReceive(method);
response = result.getFirstElement().getText();
} catch (Exception e) {
e.printStackTrace();
}
return response;
}

-Original Message-
From: Tony Liu [mailto:[EMAIL PROTECTED]
Sent: Thursday, April 10, 2008 12:09 AM
To: axis-user@ws.apache.org
Subject: How to retain type info in soap?

Hey,
Can anyone tell me how to retain type infomation of any value in an
incoming soap message in Axis2?
for example, instead of nameabc/name, we have name
type=stringabc/name.

cheers,

Tony


UNCLASSIFIED


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



Re: Just a small client sample would really be great !

2008-04-10 Thread Alberto Patino
I downloaded the  yesterday snapshot as you and I only had to update
the client code modifying the BaseResponseSequence3 class to
BaseResponseSequence6 and its working...

Clean all your project and start from the beginning



On Thu, Apr 10, 2008 at 8:23 AM, Jacques46 [EMAIL PROTECTED] wrote:

  This is getting really frustrating...  -(

  I downloaded the snapshot distribution from here (by the way it was the
  april 10 version):

  http://people.apache.org/dist/axis2/nightly/distribution-SNAPSHOT-bin.zip
  http://people.apache.org/dist/axis2/nightly/distribution-SNAPSHOT-bin.zip

  I dropped it to a folder on my drive.

  I updated my AXIS2_HOME environment variable to point to that folder.

  Opened a DOS prompt, went to the folder's bin sub-folder, and typed :

  wsdl2java -u -uri http://api.betdaq.com/v2.0/API.wsdl

  This created a src sub-tree.  In
  \src\com\globalbettingexchange\www\externalapi, I found all the generated
  classes.  I copied the \com folder to my Eclipse project.

  I then copied all the jars from the \lib sub-folder of the distribution to
  my project's lib directory, and updated the build path in the project
  properties to include those jars.

  Tried compiling : came up with a bunch of errors.

  The first one says :

 [javac]
  ...\com\globalbettingexchange\www\externalapi\ReadOnlyServiceStub.java:413:
  cannot find symbol
 [javac] symbol  : method
  
 receiveResultGetPrices(com.globalbettingexchange.www.externalapi.GetPricesResponseE)
 [javac] location: class
  com.globalbettingexchange.www.externalapi.ReadOnlyServiceCallbackHandler
 [javac] callback.receiveResultGetPrices(

  Sure enough, this receiveResultGetPrices method is nowhere to be found in
  any of the source files generated by wsdl2java.

  Could it be that the snapshot of April 10th has a bug ?





  alpatino2 wrote:
  
   I noticed a different behavior using axis2-SNAPSHOT, let me show you a
   wireshark tcpdump, you can download it here:
   http://www.4shared.com/file/43614007/1e675e4b/soaprequest.html
  
   As you can see the soap body is empty but the info is inside de SOAP
   Header, could you try to run the program with the SANPSHOT version?
  
   Also please update your source code with the right class names,
   because you know the newest axis2 version uses a new naming schema.
  
   Here is the sample code I tried:
   http://www.4shared.com/file/43614271/bbc1b9d7/BetdaqClient.html
  

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

  --
  View this message in context: 
 http://www.nabble.com/Just-a-small-client-sample-would-really-be-great-%21-tp16532618p16608590.html


 Sent from the Axis - User mailing list archive at Nabble.com.


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





-- 
Don't be evil!!!

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



RE: AdminAgent: change the serviceDir access to Protected?

2008-04-10 Thread Guillaume Cauchon
It also would be a good idea to do the same with the private static
final Log instances if both ListingAgent and AdminAgent, this way we
could use the superclass instance instead of creating new ones...



Guillaume Cauchon | DataDirect Technologies inc.

 -email: 

[EMAIL PROTECTED]

 -mobile: 

418.952-7357

 -work: 

418.649-1551

 



From: Guillaume Cauchon [mailto:[EMAIL PROTECTED] 
Sent: Thursday, April 10, 2008 10:28 AM
To: [EMAIL PROTECTED]
Cc: axis-user@ws.apache.org
Subject: AdminAgent: change the serviceDir access to Protected?

 

 

I'm working on a custom admin servlet that requires file access to the
Service Repository. I can't use the already define instance as it is
private to AdminAgent; would it be possible to change the access to
protected? If not I guess I copy the code to create the same File
instance in my agent class.

 

Thanks, Guillaume

 

/*

 * Licensed to the Apache Software Foundation (ASF) under one

 * or more contributor license agreements. See the NOTICE file

 * distributed with this work for additional information

 * regarding copyright ownership. The ASF licenses this file

 * to you under the Apache License, Version 2.0 (the

 * License); you may not use this file except in compliance

 * with the License. You may obtain a copy of the License at

 *

 * http://www.apache.org/licenses/LICENSE-2.0

 *

 * Unless required by applicable law or agreed to in writing,

 * software distributed under the License is distributed on an

 * AS IS BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY

 * KIND, either express or implied. See the License for the

 * specific language governing permissions and limitations

 * under the License.

 */

 

package org.apache.axis2.transport.http;

 

import org.apache.axis2.AxisFault;

...

 

/**

 * Provides methods to process axis2 admin requests.

 */

public class AdminAgent extends AbstractAgent {

private static final Log log =
LogFactory.getLog(AbstractAgent.class);

 

...

 

private File serviceDir;

 

...

}

 



Guillaume Cauchon | DataDirect Technologies inc.

 -email: 

[EMAIL PROTECTED]

 -mobile: 

418.952-7357

 -work: 

418.649-1551

 



Re: Return an empty array

2008-04-10 Thread Anne Thomas Manes
If you say minOccurs=1 and nillable=true, then an empty array
should return an item with nil=true

Anne

On Wed, Apr 9, 2008 at 8:22 AM, Tony Liu [EMAIL PROTECTED] wrote:
 Ok, I see what a minOccurs means now. It does kind of make sense that no
 occurrence, no element in the message.
 Thanks, Anne.



 On 4/9/08, Anne Thomas Manes [EMAIL PROTECTED] wrote:
  If you specify minOccurs=1, then you can't return an empty array.
  You must have at least one item in the array.
 
 
  Anne
 
 
  On Wed, Apr 9, 2008 at 2:05 AM, Tony Liu [EMAIL PROTECTED] wrote:
   The thing is that even I changed minOccurs to minOccurs=1, which I
   suspect it means the corresponding element occuring at least once, but
 it
   didn't seem to work. Or, have I missed something?
  
  
  
   On 4/9/08, Anne Thomas Manes [EMAIL PROTECTED] wrote:
   
   
   
If an element has been defined as minOccurs=0, and you have no
occurrences, then there should be no elements in the message. Is that
what you mean by drops the array? If you define an element to wrap
the array, then that element should still be there, but Axis2
typically doesn't define an element to wrap an array.
   
Anne
   
   
On Mon, Apr 7, 2008 at 4:24 PM, Tony Liu [EMAIL PROTECTED] wrote:
 Hi Axis users,

 Has anyone had a problem with returning an empty array but not null
   array?
 It seems Axis2 drops the array in the returning soap message if it
 is
   empty
 (not null).
 There is an article about how to get around with it, but it doesn't
 work
   for
 me. Can anyone help?
  http://www.ibm.com/developerworks/webservices/library/ws-array

 Regards,

 Tony


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



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



Re: xml:id does not want to work

2008-04-10 Thread Anne Thomas Manes
Please file a JIRA.

On Tue, Apr 8, 2008 at 12:31 PM, McCullough, Ryan
[EMAIL PROTECTED] wrote:
 Anne,

  Thank you for looking at my issue.

  I added that namespace (I tried both the xs:schema and xs:import) and it
  still does not generate the xml:id attribute in the objects.

  -Ryan



  -Original Message-
  From: Anne Thomas Manes [mailto:[EMAIL PROTECTED]
  Sent: Tuesday, April 08, 2008 8:33 AM
  To: axis-user@ws.apache.org
  Subject: Re: xml:id does not want to work

  You need to also declare the xml namespace prefix:

  xmlns:xml=http://www.w3.org/XML/1998/namespace;

  Anne

  On Mon, Apr 7, 2008 at 1:44 PM, McCullough, Ryan
  [EMAIL PROTECTED] wrote:
  
  
  
  
   In my wsdl, I am importing an xsd schema file. That xsd file has an
  import:
  
  
  
   xs:schema elementFormDefault=qualified
  
xmlns:xs=http://www.w3.org/2001/XMLSchema;
  
xmlns=urn:sanitized
  
xmlns:rnt=urn:sanitized
  
  targetNamespace=urn:sanitized
  
  
  
 xs:import namespace=http://www.w3.org/XML/1998/namespace;
  
 schemaLocation=xml.xsd /
  
  
  
   xml.xsd comes from http://www.w3.org/2001/xml.xsd.
  
  
  
   I then declare a base object that several other objects extend.
  
  
  
   xs:complexType name=api_base
  
   xs:attribute ref=xml:id /
  
   xs:attribute ref=attr2 /
  
   xs:attribute ref=attr3 /
  
   xs:attribute name=attr4 type=xs:base64Binary /
  
   /xs:complexType
  
  
  
  
  
   xs:complexType name=contact 
  
   xs:complexContent
  
   xs:extension base=api_base
  
   xs:sequence
  
   !-Attributes go here--
  
   /xs:sequence
  
   /xs:extension
  
   /xs:complexContent
  
   /xs:complexType
  
  
  
  
  
   The problem is that Axis does not seem to like the xml:id. The xml:id
   attribute is not declared in objects.
  
  
  
   Ideas?
  
  
  
   Ryan McCullough | RightNow Technologies | Integration Tools Engineer
  
   406-556-3162 office | Bozeman, MT | [EMAIL PROTECTED] |
   http://www.rightnow.com
  
  

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



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



Re: RPC/encoded WSDL support

2008-04-10 Thread Anne Thomas Manes
Axis2 does not support SOAP encoding.

On Tue, Apr 8, 2008 at 11:39 AM, Detelin Yordanov
[EMAIL PROTECTED] wrote:
 Hello guys,
   Does Axis2 1.4 support rpc/encoded WSDLs?
 I am able to deploy a service aar with a custom rpc/encoded WSDL but I could
 not invoke it successfully, so I decided to just ask you whether
 this is officially supported.
  I noticed that Axis2 is converting the rpc operations to doc/literal
 wrapped but I was not sure whether this is done only for rpc/literal or it
 covers the rpc/encoded
 as well?
 I also read a long discussion about rpc/encoded support in ADB and I saw
 there are already some new classes for it, is this finished or work is still
 in progress?

 Thanks in advance,
Detelin


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



Re: [U] RE: How to retain type info in soap?

2008-04-10 Thread Tony Liu
Hey, thanks for the code.
What I meant is get the types into the incoming messages, so I'm thinking of
any setting at the server side. You don't have to specify types in the
outgoing soap, because I think axis2 will figure them out from wsdl file.

I used to have a namespace problem too. The error I got was something like
need namespace blah blah, found none. If you have a similar problem, I
might be able to help.

On 4/11/08, Higdon, Aaron C Mr CTR USA TRADOC USAAC 
[EMAIL PROTECTED] wrote:

 UNCLASSIFIED


 I managed to get the types into the message using the ServiceClient, but
 I cannot get the declared namespaces to show up. Here is my code if it
 helps you out:
 public Object invoke(String methodName, Object[] args) throws Exception
 {
 String response = null;
 try {
 SOAPFactory omFactory =
 OMAbstractFactory.getSOAP11Factory();
 SOAPEnvelope envelope = omFactory.getDefaultEnvelope();

 envelope.declareNamespace(http://schemas.xmlsoap.org/soap/envelope/;,
 SOAP-ENV);

 envelope.declareNamespace(http://schemas.xmlsoap.org/soap/encoding/;,
 SOAP-ENC);

 envelope.declareNamespace(http://www.w3.org/2001/XMLSchema;, xsd);
 OMNamespace nsXsi =
 envelope.declareNamespace(http://www.w3.org/2001/XMLSchema-instance;,
 xsi);
 OMNamespace nsService =
 envelope.declareNamespace(urn:ermservice, ns1);

 OMFactory fac = OMAbstractFactory.getOMFactory();

 OMElement method = fac.createOMElement(methodName,
 nsService);
 envelope.getBody().addChild(method);

 OMElement value = fac.createOMElement(user-String,
 null);
 value.addChild(fac.createOMText(this.userName));
 value.addAttribute(type, xsd:string, nsXsi);

 method.addChild(value);

 MessageContext msgContext = new MessageContext();
 msgContext.setEnvelope(envelope);

 Options options = new Options();
 options.setTo(new EndpointReference(
 this.url.toExternalForm() ));

 options.setTransportInProtocol(org.apache.axis2.Constants.TRANSPORT_HTTP
 );
 options.setProperty(HTTPConstants.CHUNKED, false);

 System.out.println(envelope.toString());//correctly
 shows all declared namespaces
 ServiceClient sender = new ServiceClient();
 sender.setOptions(options);

 OMElement result = sender.sendReceive(method);
 response = result.getFirstElement().getText();
 } catch (Exception e) {
 e.printStackTrace();
 }
 return response;

 }

 -Original Message-
 From: Tony Liu [mailto:[EMAIL PROTECTED]
 Sent: Thursday, April 10, 2008 12:09 AM
 To: axis-user@ws.apache.org
 Subject: How to retain type info in soap?

 Hey,
 Can anyone tell me how to retain type infomation of any value in an
 incoming soap message in Axis2?
 for example, instead of nameabc/name, we have name
 type=stringabc/name.

 cheers,

 Tony



 UNCLASSIFIED


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




Re: Return an empty array

2008-04-10 Thread Tony Liu
an empty array should return an item with nil=true?
Do you mean an empty array with length zero or a size-one array with one
item of nil?


On 4/11/08, Anne Thomas Manes [EMAIL PROTECTED] wrote:

 If you say minOccurs=1 and nillable=true, then an empty array
 should return an item with nil=true


 Anne


 On Wed, Apr 9, 2008 at 8:22 AM, Tony Liu [EMAIL PROTECTED] wrote:
  Ok, I see what a minOccurs means now. It does kind of make sense that no
  occurrence, no element in the message.
  Thanks, Anne.
 
 
 
  On 4/9/08, Anne Thomas Manes [EMAIL PROTECTED] wrote:
   If you specify minOccurs=1, then you can't return an empty array.
   You must have at least one item in the array.
  
  
   Anne
  
  
   On Wed, Apr 9, 2008 at 2:05 AM, Tony Liu [EMAIL PROTECTED] wrote:
The thing is that even I changed minOccurs to minOccurs=1, which
 I
suspect it means the corresponding element occuring at least once,
 but
  it
didn't seem to work. Or, have I missed something?
   
   
   
On 4/9/08, Anne Thomas Manes [EMAIL PROTECTED] wrote:



 If an element has been defined as minOccurs=0, and you have no
 occurrences, then there should be no elements in the message. Is
 that
 what you mean by drops the array? If you define an element to
 wrap
 the array, then that element should still be there, but Axis2
 typically doesn't define an element to wrap an array.

 Anne


 On Mon, Apr 7, 2008 at 4:24 PM, Tony Liu [EMAIL PROTECTED]
 wrote:
  Hi Axis users,
 
  Has anyone had a problem with returning an empty array but not
 null
array?
  It seems Axis2 drops the array in the returning soap message if
 it
  is
empty
  (not null).
  There is an article about how to get around with it, but it
 doesn't
  work
for
  me. Can anyone help?
   http://www.ibm.com/developerworks/webservices/library/ws-array
 
  Regards,
 
  Tony
 
 



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


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

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




How to know how the data is passing between client and server.

2008-04-10 Thread Tikayatray, Lokajit

Hi all,
I am a newbie to this web service. I have a doubt regarding the way the
data is being passed between client and the server.
My doubt is, how can I find out how my data from client is getting
passed to my server i.e. whether the data is getting serialized or it is
passing as binary data.

Thanks and Regards
Lokajit Tikayatray

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



RE: How to know how the data is passing between client and server.

2008-04-10 Thread Raghu Upadhyayula
You can use tcpmon to see the SOAP requests  responses.

You can download tcpmon from https://tcpmon.dev.java.net/

Thanks
Raghu

-Original Message-
From: Tikayatray, Lokajit [mailto:[EMAIL PROTECTED] 
Sent: Thursday, April 10, 2008 3:10 PM
To: axis-user@ws.apache.org
Subject: How to know how the data is passing between client and server.


Hi all,
I am a newbie to this web service. I have a doubt regarding the way the
data is being passed between client and the server.
My doubt is, how can I find out how my data from client is getting
passed to my server i.e. whether the data is getting serialized or it is
passing as binary data.

Thanks and Regards
Lokajit Tikayatray

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


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



RE: How to know how the data is passing between client and server.

2008-04-10 Thread Tikayatray, Lokajit

Thanks Raghu for ur response.
I use tcpmon and can see the request and response xml. But from that can
we tell for sure that the data in request object is passing in a
serialized format and not in a binary format. My request object looks as
below:



POST /livecluster/services/SimpleJavaAdder HTTP/1.1
Content-Type: text/xml; charset=UTF-8
SOAPAction: 
User-Agent: Axis2
Authorization: Basic dGVzdDp0ZXN0
Host: abc-def.nk.sb.com:1234
Transfer-Encoding: chunked

2f0
?xml version='1.0' encoding='UTF-8'?
   soapenv:Envelope
xmlns:soapenv=http://schemas.xmlsoap.org/soap/envelope/;
  soapenv:Body
 ns4:addArray xmlns:ns4=http://grid.gwm.citi.com;
ns4:inputSetArray
   ns4:calcNameA/ns4:calcName
   ns4:intVar11220/ns4:intVar1
   ns4:intVar21420/ns4:intVar2
/ns4:inputSetArray
ns4:inputSetArray
   ns4:calcNameB/ns4:calcName
   ns4:intVar12021/ns4:intVar1
   ns4:intVar24021/ns4:intVar2
/ns4:inputSetArray
ns4:inputSetArray
   ns4:calcNameC/ns4:calcName
   ns4:intVar12022/ns4:intVar1
   ns4:intVar24022/ns4:intVar2
/ns4:inputSetArray
ns4:inputSetArray
   ns4:calcNameD/ns4:calcName
   ns4:intVar12023/ns4:intVar1
   ns4:intVar24023/ns4:intVar2
/ns4:inputSetArray
 /ns4:addArray
  /soapenv:Body
   /soapenv:Envelope0

-

Thanks and Regards
Lokajit Tikayatray
-Original Message-
From: Raghu Upadhyayula [mailto:[EMAIL PROTECTED] 
Sent: Thursday, April 10, 2008 6:18 PM
To: axis-user@ws.apache.org
Subject: RE: How to know how the data is passing between client and
server.

You can use tcpmon to see the SOAP requests  responses.

You can download tcpmon from https://tcpmon.dev.java.net/

Thanks
Raghu

-Original Message-
From: Tikayatray, Lokajit [mailto:[EMAIL PROTECTED]
Sent: Thursday, April 10, 2008 3:10 PM
To: axis-user@ws.apache.org
Subject: How to know how the data is passing between client and server.


Hi all,
I am a newbie to this web service. I have a doubt regarding the way the
data is being passed between client and the server.
My doubt is, how can I find out how my data from client is getting
passed to my server i.e. whether the data is getting serialized or it is
passing as binary data.

Thanks and Regards
Lokajit Tikayatray

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


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


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



Logging SOAP Requests

2008-04-10 Thread Matthew Beldyk
Hi,

I was wondering if there was any out of the box functionality that would log
who is requesting what.  Basically, I have several Axis2 servlets running
under Tomcat and I want to keep track of how people are using them.

Currently, I am thinking about serializing the requester's ip and soap
request into some csv form and writing to a log file (we use lots of perl
and bash scripts where I work, so a plain-text csv makes a certain amount of
sense).  But, if there were some functionality to record this information
easily in a less 1980's style, I would prefer to do that.

Does anyone have any recommendations on how to do this?

-Matt Beldyk



-- 
Calvin: Know what I pray for?
Hobbes: What?
Calvin: The strength to change what I can, the inability to accept what I
can't, and the incapacity to tell the difference.


Transport error: 403 Error: access forbidden

2008-04-10 Thread Chris Richmond
Hello all,

 

I am having a strange problem. I have built a POJO web service that is
itself an ADB client to another ws(.NET) and all works fine,  but I notice
for some reason when I use my test client make calls multiple times..and I
don't even mean load testing..but just manually call via a button click like
once a second..or even less.by 10 calls or so it throws an exception on the
server(shown below) .   I can loop calls and it will run 10 or so ok, then
start throwing this exception for several, then run a few more ok, then
throw this exception back and forth like that.  I am not using SSL, https,
or any other thing like that either , and as I said I'm using ADB.  It seems
like some sort of loading/performance issue, but I never see any spike in
CPU usage and as I said, I am doing ridiculously low call frequency.
Perhaps there is a resource issue by having an Axis2 web service that is
both a service and a client to another WS? That should work fine, but maybe
I need to take special steps?  If anyone has any ideas on this, please help
me out.

 

Thanks,

 

Chris

 

[ERROR] org.apache.axis2.AxisFault: Transport error: 403 Error: Access
Forbidden

java.lang.reflect.InvocationTargetException

at sun.reflect.GeneratedMethodAccessor34.invoke(Unknown Source)

at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:25)

at java.lang.reflect.Method.invoke(Method.java:597)

at
org.apache.axis2.rpc.receivers.RPCUtil.invokeServiceClass(RPCUtil.java:194)

at
org.apache.axis2.rpc.receivers.RPCMessageReceiver.invokeBusinessLogic(RPCMes
sageReceiver.java:98)

at
org.apache.axis2.receivers.AbstractInOutMessageReceiver.invokeBusinessLogic(
AbstractInOutMessageReceiver.jav

:40)

at
org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMessageRe
ceiver.java:96)

at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:145)

at
org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HT
TPTransportUtils.java:275)

at
org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:120)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)

at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:290)

at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:206)

at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:233)

at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:175)

at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128
)

at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102
)

at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:109)

at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:263)

at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)

at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http
11Protocol.java:584)

at
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)

at java.lang.Thread.run(Thread.java:619)

 



Converting array of objects to OMElement

2008-04-10 Thread Tikayatray, Lokajit

Hi All,
I have an array of java custom objects. I need to convert them to
OMElements. Can anybody help me in this regard.
Sample code or any helpful link is much appreciated.


Thanks and Regards
Lokajit Tikayatray

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



RE: Converting array of objects to OMElement

2008-04-10 Thread Raghu Upadhyayula
Hi Lokajit,

Someone in the forum replied to this some days ago ... here's
the link which tell you how to convert a Java bean to OMELement ...

http://wso2.org/library/332

Thanks
Raghu

-Original Message-
From: Tikayatray, Lokajit [mailto:[EMAIL PROTECTED] 
Sent: Thursday, April 10, 2008 4:52 PM
To: axis-user@ws.apache.org
Subject: Converting array of objects to OMElement


Hi All,
I have an array of java custom objects. I need to convert them to
OMElements. Can anybody help me in this regard.
Sample code or any helpful link is much appreciated.


Thanks and Regards
Lokajit Tikayatray

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


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



Size of Message with Axis2

2008-04-10 Thread juliocest

Hi,

I would like to know if it is possible get the size of message sent to my
server code and also get the size of response that came back? What I have to
set or to use in order to get some information about IN / OUT message, like
size, for example?

Thanks.

Julio
Sao Carlos - SP - Brazil
-- 
View this message in context: 
http://www.nabble.com/Size-of-Message-with-Axis2-tp16622679p16622679.html
Sent from the Axis - User mailing list archive at Nabble.com.


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



RE: xml:id does not want to work

2008-04-10 Thread McCullough, Ryan
Written up as AXIS-2735.

https://issues.apache.org/jira/browse/AXIS-2735

-Original Message-
From: Anne Thomas Manes [mailto:[EMAIL PROTECTED] 
Sent: Thursday, April 10, 2008 2:52 PM
To: axis-user@ws.apache.org
Subject: Re: xml:id does not want to work

Please file a JIRA.

On Tue, Apr 8, 2008 at 12:31 PM, McCullough, Ryan
[EMAIL PROTECTED] wrote:
 Anne,

  Thank you for looking at my issue.

  I added that namespace (I tried both the xs:schema and xs:import) and
it
  still does not generate the xml:id attribute in the objects.

  -Ryan



  -Original Message-
  From: Anne Thomas Manes [mailto:[EMAIL PROTECTED]
  Sent: Tuesday, April 08, 2008 8:33 AM
  To: axis-user@ws.apache.org
  Subject: Re: xml:id does not want to work

  You need to also declare the xml namespace prefix:

  xmlns:xml=http://www.w3.org/XML/1998/namespace;

  Anne

  On Mon, Apr 7, 2008 at 1:44 PM, McCullough, Ryan
  [EMAIL PROTECTED] wrote:
  
  
  
  
   In my wsdl, I am importing an xsd schema file. That xsd file has an
  import:
  
  
  
   xs:schema elementFormDefault=qualified
  
xmlns:xs=http://www.w3.org/2001/XMLSchema;
  
xmlns=urn:sanitized
  
xmlns:rnt=urn:sanitized
  
  targetNamespace=urn:sanitized
  
  
  
 xs:import namespace=http://www.w3.org/XML/1998/namespace;
  
 schemaLocation=xml.xsd /
  
  
  
   xml.xsd comes from http://www.w3.org/2001/xml.xsd.
  
  
  
   I then declare a base object that several other objects extend.
  
  
  
   xs:complexType name=api_base
  
   xs:attribute ref=xml:id /
  
   xs:attribute ref=attr2 /
  
   xs:attribute ref=attr3 /
  
   xs:attribute name=attr4 type=xs:base64Binary /
  
   /xs:complexType
  
  
  
  
  
   xs:complexType name=contact 
  
   xs:complexContent
  
   xs:extension base=api_base
  
   xs:sequence
  
   !-Attributes go here--
  
   /xs:sequence
  
   /xs:extension
  
   /xs:complexContent
  
   /xs:complexType
  
  
  
  
  
   The problem is that Axis does not seem to like the xml:id. The xml:id
   attribute is not declared in objects.
  
  
  
   Ideas?
  
  
  
   Ryan McCullough | RightNow Technologies | Integration Tools Engineer
  
   406-556-3162 office | Bozeman, MT | [EMAIL PROTECTED] |
   http://www.rightnow.com
  
  

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



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



smime.p7s
Description: S/MIME cryptographic signature


Re: Just a small client sample would really be great !

2008-04-10 Thread Jacques46

I tried generating the code again with the wsdl2java utility.

With the -u option, the receiveResultGetPrices (and, I'm sure other methods
as well) is missing from the ReadOnlyServiceCallbackHandler.java file.

If I remove the -u option, then the method is there, but of course, instead
of getting hundreds of java files, I only get 4, 2 of them being huge... 
small annoyance, the important thing is I can now talk to Betdaq.

Thank you very much for your help Alberto.  Hoping it helps someone else
along the way.


alpatino2 wrote:
 
 I downloaded the  yesterday snapshot as you and I only had to update
 the client code modifying the BaseResponseSequence3 class to
 BaseResponseSequence6 and its working...
 
 Clean all your project and start from the beginning
 
 

-- 
View this message in context: 
http://www.nabble.com/Just-a-small-client-sample-would-really-be-great-%21-tp16532618p16623910.html
Sent from the Axis - User mailing list archive at Nabble.com.


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



Re: Size of Message with Axis2

2008-04-10 Thread Tony Liu
Try tcpmon to get all the incoming and outgoing messages.

On 4/11/08, juliocest [EMAIL PROTECTED] wrote:


 Hi,

 I would like to know if it is possible get the size of message sent to my
 server code and also get the size of response that came back? What I have
 to
 set or to use in order to get some information about IN / OUT message,
 like
 size, for example?

 Thanks.

 Julio
 Sao Carlos - SP - Brazil

 --
 View this message in context:
 http://www.nabble.com/Size-of-Message-with-Axis2-tp16622679p16622679.html
 Sent from the Axis - User mailing list archive at Nabble.com.


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