Re: AXIS2 and AXIOM

2008-08-26 Thread Supun Kamburugamuva
Here is a simple tutorial for Axiom/C

http://wsaxc.blogspot.com/2008/01/beginners-guide-to-axiomc.html

Supun..

On Tue, Aug 26, 2008 at 7:50 PM, Rajika Kumarasiri <[EMAIL PROTECTED]>wrote:

>
>
> On Tue, Aug 26, 2008 at 8:01 PM, Martina08 <[EMAIL PROTECTED]>wrote:
>
> Have a look at this echo client sample, look how the pay load is built
> there.
>
> https://svn.apache.org/repos/asf/webservices/axis2/trunk/c/samples/client/echo/echo.c
>
> -Rajika
>
>
>> hi, i have some Problems to write a client by a given WSDL-File. First i
>> have
>> generate the stub-classes (i get one *.h and one *.c file). Then i work
>> along the hello example. First Step is:
>> Create the environment to be used by the client.
>> env = axutil_env_create_all("example.log", AXIS_LOG_LEVEL_TRACE);
>> client_home = AXIS2_GETENV("AXIS2C_HOME");
>> ...
>> then follow:Create an options instance, and set options.
>> endpoint_uri = "http://localhost:8080/...";;
>> stub = axis2_stub_create_exampleService(env, client_home, endpoint_uri);
>>
>> Then follow:Set options to service client instance
>> 
>>
>> I did it a little bit different like the hello example, but i think it
>> works. The main problem is the next step:
>> Send the request and receive the response, Process the response
>> I have read the AXIOM tutorial but i think this is very abstract. I dont
>> know how i write a request and response function using AXIOM. I understand
>> that you must create a tree structur with the nodes. But what is exactly a
>> AXIOM_ELEMENT? How can i use SOAP
>> A fragment of the wsdl document is like:
>> 
>>part name ="parameters" element="tns:ini"/>
>> 
>> ...
>> ...
>> 
>>
>>
>>
>>
>> My question is, how i create the payload for request and receive Response?
>> Is somewhere a good tutorial using AXIOM or other examples? Can somebody
>> give me a few tipps to get better involve with AXIOM and Client
>> programming?
>>
>> --
>> View this message in context:
>> http://www.nabble.com/AXIS2-and-AXIOM-tp19163204p19163204.html
>> Sent from the Axis - C++ - User mailing list archive at Nabble.com.
>>
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>
>
> --
> http://wso2.org/
> http://llvm.org/
> http://osdev.org/
>



-- 
Software Engineer, WSO2 Inc


Re: Runtime error

2008-08-26 Thread Alessandro Gambaro
Hi, I figured out it debugging the sources (The code needed some libraries),
hoping this can help somebody here a little guide:

1 - Do not use http://ws.apache.org/axis/cpp/download.html (It's old)
2 - Download the last version from SVN that is more stable
http://svn.apache.org/repos/asf/webservices/axis/trunk/c
3 - Download Xerces sources http://xerces.apache.org/xerces-c/
 Build Xerces (you need it for AxisXMLParser)
 Xerces is not mandatory but you need to compile one
AxisXMLParser***.dll and i decided to use Xerces
4 - Build AxisXMLParser.dll (AxisXMLParserXerces project)
 AxisClient.dll (AxisClient project)
 HTTPChannel.dll (HTTPChannel project)
 HTTPChannel.dll (HTTPChannel project)
 HTTPTransport.dll(Axis3 project)
5 - Build the java code to create the new .jar file
6 - Generate the stubs using the new jar
7 - Create e simple client and use the libraries above to run and compile IT
WORKS

Thanks,
Alessandro


On Tue, Aug 26, 2008 at 2:29 PM, Alessandro Gambaro <
[EMAIL PROTECTED]> wrote:

> Hi I would like to use AXIS-C to consume a web services, what I've done is
> (Server with .NET 2005 and client with Visual C++ 6.0):
>
> 1 - Download the zip from http://ws.apache.org/axis/cpp/download.html
>
> 2 - Unzip, and I've also generated the stub with this command:
>  Java -classpath ./;./axis-c-1.6b-Win32-trace-
> bin/lib/axis/wsdl2ws.jar;./axis-c-1.6b-Win32-trace-bin/lib/axisjava/axis.jar;./axis-c-1.6b-Win32-trace-bin/lib/axisjava/commons-discovery.jar;./axis-c-1.6b-Win32-trace-bin/lib/axisjava/commons-logging.jar;./axis-c-1.6b-Win32-trace-bin/lib/axisjava/jaxrpc.jar;./axis-c-1.6b-Win32-trace-bin/lib/axisjava/saaj.jar;./axis-c-1.6b-Win32-trace-bin/lib/axisjava/wsdl4j.jar
> org.apache.axis.wsdl.wsdl2ws.WSDL2Ws MyTest.wsdl -lc++ -sclient
>
> 3 - I've downloaded msvcp70.dll and msvcr70.dll
> 4 - I've created a project (with visual C++ 6.0)set it up and created a
> client who call the web services:
>
>
>Service1Soap* service = new Service1Soap(WSDL_DEFAULT_ENDPOINT,
> APTHTTP1_1);
>xsd__string cazzo = service->HelloWorld();
>
>
> 5 - When I run the client I get this error: 0xE06D7363 MIcrosoft Exception
>
> I've also create a client with axis for Java and it works fine. Could you
> please tell me what I miss or what i've to do?
>
> Many thanks,
>
> Alessandro
>


Re: AXIS2 and AXIOM

2008-08-26 Thread Rajika Kumarasiri
On Tue, Aug 26, 2008 at 8:01 PM, Martina08 <[EMAIL PROTECTED]> wrote:

Have a look at this echo client sample, look how the pay load is built
there.
https://svn.apache.org/repos/asf/webservices/axis2/trunk/c/samples/client/echo/echo.c

-Rajika

>
> hi, i have some Problems to write a client by a given WSDL-File. First i
> have
> generate the stub-classes (i get one *.h and one *.c file). Then i work
> along the hello example. First Step is:
> Create the environment to be used by the client.
> env = axutil_env_create_all("example.log", AXIS_LOG_LEVEL_TRACE);
> client_home = AXIS2_GETENV("AXIS2C_HOME");
> ...
> then follow:Create an options instance, and set options.
> endpoint_uri = "http://localhost:8080/...";;
> stub = axis2_stub_create_exampleService(env, client_home, endpoint_uri);
>
> Then follow:Set options to service client instance
> 
>
> I did it a little bit different like the hello example, but i think it
> works. The main problem is the next step:
> Send the request and receive the response, Process the response
> I have read the AXIOM tutorial but i think this is very abstract. I dont
> know how i write a request and response function using AXIOM. I understand
> that you must create a tree structur with the nodes. But what is exactly a
> AXIOM_ELEMENT? How can i use SOAP
> A fragment of the wsdl document is like:
> 
>part name ="parameters" element="tns:ini"/>
> 
> ...
> ...
> 
>
>
>
>
> My question is, how i create the payload for request and receive Response?
> Is somewhere a good tutorial using AXIOM or other examples? Can somebody
> give me a few tipps to get better involve with AXIOM and Client
> programming?
>
> --
> View this message in context:
> http://www.nabble.com/AXIS2-and-AXIOM-tp19163204p19163204.html
> Sent from the Axis - C++ - User mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
http://wso2.org/
http://llvm.org/
http://osdev.org/


AXIS2 and AXIOM

2008-08-26 Thread Martina08

hi, i have some Problems to write a client by a given WSDL-File. First i have
generate the stub-classes (i get one *.h and one *.c file). Then i work
along the hello example. First Step is:
Create the environment to be used by the client. 
env = axutil_env_create_all("example.log", AXIS_LOG_LEVEL_TRACE);
client_home = AXIS2_GETENV("AXIS2C_HOME");
...
then follow:Create an options instance, and set options.
endpoint_uri = "http://localhost:8080/...";;
stub = axis2_stub_create_exampleService(env, client_home, endpoint_uri);

Then follow:Set options to service client instance


I did it a little bit different like the hello example, but i think it
works. The main problem is the next step:
Send the request and receive the response, Process the response
I have read the AXIOM tutorial but i think this is very abstract. I dont
know how i write a request and response function using AXIOM. I understand
that you must create a tree structur with the nodes. But what is exactly a
AXIOM_ELEMENT? How can i use SOAP
A fragment of the wsdl document is like:

part name ="parameters" element="tns:ini"/>

...
...





My question is, how i create the payload for request and receive Response?
Is somewhere a good tutorial using AXIOM or other examples? Can somebody
give me a few tipps to get better involve with AXIOM and Client programming?

-- 
View this message in context: 
http://www.nabble.com/AXIS2-and-AXIOM-tp19163204p19163204.html
Sent from the Axis - C++ - User mailing list archive at Nabble.com.


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



Runtime error

2008-08-26 Thread Alessandro Gambaro
Hi I would like to use AXIS-C to consume a web services, what I've done is
(Server with .NET 2005 and client with Visual C++ 6.0):

1 - Download the zip from http://ws.apache.org/axis/cpp/download.html

2 - Unzip, and I've also generated the stub with this command:
 Java -classpath ./;./axis-c-1.6b-Win32-trace-
bin/lib/axis/wsdl2ws.jar;./axis-c-1.6b-Win32-trace-bin/lib/axisjava/axis.jar;./axis-c-1.6b-Win32-trace-bin/lib/axisjava/commons-discovery.jar;./axis-c-1.6b-Win32-trace-bin/lib/axisjava/commons-logging.jar;./axis-c-1.6b-Win32-trace-bin/lib/axisjava/jaxrpc.jar;./axis-c-1.6b-Win32-trace-bin/lib/axisjava/saaj.jar;./axis-c-1.6b-Win32-trace-bin/lib/axisjava/wsdl4j.jar
org.apache.axis.wsdl.wsdl2ws.WSDL2Ws MyTest.wsdl -lc++ -sclient

3 - I've downloaded msvcp70.dll and msvcr70.dll
4 - I've created a project (with visual C++ 6.0)set it up and created a
client who call the web services:

   
   Service1Soap* service = new Service1Soap(WSDL_DEFAULT_ENDPOINT,
APTHTTP1_1);
   xsd__string cazzo = service->HelloWorld();
   

5 - When I run the client I get this error: 0xE06D7363 MIcrosoft Exception

I've also create a client with axis for Java and it works fine. Could you
please tell me what I miss or what i've to do?

Many thanks,

Alessandro