axis-c-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Samisa Abeysinghe <sam...@wso2.com>
Subject Re: Webserivce call through Axis fails..
Date Thu, 10 Apr 2008 09:55:39 GMT
Looks like this is a namespace problem.
1. What is the operation that you are trying to invoke?
2. Are you using generated client code?

Thanks,
Samisa...

Rahil Ali wrote:
> 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:string">CHL1</ChannelID>
>       <User xsi:type="xsd:string">UID1</User>
>         </Header>
>       <Message xsi:type="xsd:string">MSG MSG SMSG</Message>
>       <Title xsi:type="xsd:string">TITLE</Title>
>       <MobileNo xsi:type="xsd:string">1324</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:string">CHL1</ChannelID>      <User 
> xsi:type="xsd:string">UID1</User>        </Header>      <Message 
> xsi:type="xsd:string">MSG MSG SMSG</Message>      <Title 
> xsi:type="xsd:string">TITLE</Title>      <MobileNo 
> xsi:type="xsd:string">1324</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 <samisa@wso2.com>/* 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 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
>     > > > AddressingOutHandler to phase MessageOut
>     > > > [Tue Apr 8 03:51:12 2008] [debug] op_client.c(881)
>     > > > Start:axis2_op_client_infer_transport
>     > > > [Tue Apr 8 03:51:12 2008] [debug] op_client.c(936)
>     > > > End:axis2_op_client_infer_transport
>     > > > [Tue Apr 8 03:51:12 2008] [debug] engine.c(648)
>     > > > Start:axis2_engine_invoke_phases
>     > > > [Tue Apr 8 03:51:12 2008] [debug] engine.c(660) Invoking phase
>     > > > MessageOut
>     > > > [Tue Apr 8 03:51:12 2008] [debug] phase.c(200) Invoke the
>     handler
>     > > > AddressingOutHandler within the phase MessageOut
>     > > > [Tue Apr 8 03:51:12 2008] [debug] engine.c(670)
>     > > > End:axis2_engine_invoke_phases
>     > > > [Tue Apr 8 03:51:12 2008] [debug] http_transport_sender.c(248)
>     > > >
>     > >
>     >
>     ctx_epr:http://10.10.217.134:5568/ProcessDefinitions/Testing/TestServer/GSCP/intfAuthenticateCustomer-service.serviceagent/intfwsAuthenticateCustomerEndpoint0
>     > > > [Tue Apr 8 03:51:12 2008] [debug] http_sender.c(393)
>     > > > msg_ctx_id:1f500f44-04f5-1dd1-23e3-000c29e99385
>     > > > [Tue Apr 8 03:51:13 2008] [error]
>     > > > axis2_skel_FundTransferRequest.c(343) Error: response NULL
>     > > > [Tue Apr 8 03:51:13 2008] [error]
>     > > > axis2_skel_FundTransferRequest.c(130) Unable to snd SMS
>     > > > [Tue Apr 8 03:51:13 2008] [debug] engine.c(648)
>     > > > Start:axis2_engine_invoke_phases
>     > > > [Tue Apr 8 03:51:13 2008] [debug] engine.c(660) Invoking phase
>     > > > MessageOut
>     > > > [Tue Apr 8 03:51:13 2008] [debug] phase.c(200) Invoke the
>     handler
>     > > > AddressingOutHandler within the phase MessageOut
>     > > > [Tue Apr 8 03:51:13 2008] [debug] engine.c(670)
>     > > > End:axis2_engine_invoke_phases
>     > > > [Tue Apr 8 03:51:13 2008] [debug] engine.c(302) Axis2 engine
>     > > > receive completed!
>     > > > =======================
>     > > >
>     > > > Thanks & Regards,
>     > > > Rahil Ali
>     > > >
>     > > > */Samisa Abeysinghe /* wrote:
>     > > >
>     > > > Rahil Ali wrote:
>     > > > > Hello All,
>     > > > >
>     > > > > I am trying to call a web-service from axis2c (WSDL2C). The
>     > > > code is
>     > > > > generated and compiled properly. When I try to call the
>     > > > Webservice the
>     > > > > function in the stub file fails (
>     > > > > "axis2_svc_client_send_receive_with_op_qname" ). It returns
>     > > > NULL and
>     > > > > web-service cannot be called.
>     > > > >
>     > > > > Please help me with this problem,
>     > > >
>     > > > What does the log say?
>     > > >
>     > > > Samisa...
>     > > >
>     > > > >
>     > > > > Thanks & warm Regards,
>     > > > > Rahil Ali
>     > > > >
>     > > >
>     > >
>     >
>     ------------------------------------------------------------------------
>     > > > >
>     > > > > No virus found in this incoming message.
>     > > > > Checked by AVG.
>     > > > > Version: 7.5.519 / Virus Database: 269.22.9/1364 - Release
>     > > > Date: 4/7/2008 6:38 PM
>     > > > >
>     > > >
>     > > >
>     > > > --
>     > > > Samisa Abeysinghe
>     > > > Software Architect; WSO2 Inc.
>     > > >
>     > > > http://www.wso2.com/ - "Oxygenating the Web Service Platform."
>     > > >
>     > > >
>     > > >
>     > >
>     >
>     ---------------------------------------------------------------------
>     > > > To unsubscribe, e-mail: axis-c-user-unsubscribe@ws.apache.org
>     > > > For additional commands, e-mail: axis-c-user-help@ws.apache.org
>     > > >
>     > > >
>     > > >
>     > > >
>     > > >
>     > > >
>     > > >
>     > > >
>     > >
>     >
>     ------------------------------------------------------------------------
>     > > >
>     > > > No virus found in this incoming message.
>     > > > Checked by AVG.
>     > > > Version: 7.5.519 / Virus Database: 269.22.10/1366 - Release
>     > > Date: 4/8/2008 5:03 PM
>     > > >
>     > >
>     > >
>     > > --
>     > > Samisa Abeysinghe
>     > > Software Architect; WSO2 Inc.
>     > >
>     > > http://www.wso2.com/ - "Oxygenating the Web Service Platform."
>     > >
>     > >
>     > >
>     >
>     ---------------------------------------------------------------------
>     > > To unsubscribe, e-mail: axis-c-user-unsubscribe@ws.apache.org
>     > > For additional commands, e-mail: axis-c-user-help@ws.apache.org
>     > >
>     > >
>     > >
>     > >
>     > >
>     >
>     ------------------------------------------------------------------------
>     > >
>     > >
>     >
>     ---------------------------------------------------------------------
>     > > To unsubscribe, e-mail: axis-c-user-unsubscribe@ws.apache.org
>     > > For additional commands, e-mail: axis-c-user-help@ws.apache.org
>     > >
>     >
>     ------------------------------------------------------------------------
>     > >
>     > > No virus found in this incoming message.
>     > > Checked by AVG.
>     > > Version: 7.5.519 / Virus Database: 269.22.10/1366 - Release
>     > Date: 4/8/2008 5:03 PM
>     > >
>     >
>     >
>     > --
>     > Samisa Abeysinghe
>     > Software Architect; WSO2 Inc.
>     >
>     > http://www.wso2.com/ - "Oxygenating the Web Service Platform."
>     >
>     >
>     >
>     ---------------------------------------------------------------------
>     > To unsubscribe, e-mail: axis-c-user-unsubscribe@ws.apache.org
>     > For additional commands, e-mail: axis-c-user-help@ws.apache.org
>     >
>     >
>     >
>     >
>     >
>     ------------------------------------------------------------------------
>     >
>     > No virus found in this incoming message.
>     > Checked by AVG.
>     > Version: 7.5.519 / Virus Database: 269.22.11/1368 - Release
>     Date: 4/9/2008 4:20 PM
>     >
>
>
>     -- 
>     Samisa Abeysinghe
>     Software Architect; WSO2 Inc.
>
>     http://www.wso2.com/ - "Oxygenating the Web Service Platform."
>
>
>     ---------------------------------------------------------------------
>     To unsubscribe, e-mail: axis-c-user-unsubscribe@ws.apache.org
>     For additional commands, e-mail: axis-c-user-help@ws.apache.org
>
>
>
>
> ------------------------------------------------------------------------
>
> No virus found in this incoming message.
> Checked by AVG. 
> Version: 7.5.519 / Virus Database: 269.22.11/1368 - Release Date: 4/9/2008 4:20 PM
>   


-- 
Samisa Abeysinghe 
Software Architect; WSO2 Inc.

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


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-c-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-c-user-help@ws.apache.org


Mime
View raw message