Consuming .NET Web Services

forum.centura.web.developer (1998-2005) & forum.td.web (2005-2010)
Sergio Cerda

Consuming .NET Web Services

Post by Sergio Cerda » 06 Jan 2009, 15:33

 Posted by:  Sergio Cerda 

Hi, I have a web service at IIS with one function HOLAMUNDO (HELLOWORLD)

1. I have the WSDL file (See attachment).
2. My code to call the service is
Call oServicio.Init( "Service", "ServiceSoap", "C:\\Archivos de
programa\\Unify\\Team Developer 5.1\\Templates\\Service.config", FALSE )
Call oServicio.HolaMundo( "any thing", sCadena)
3. After run I see the LOG file and get the next text
10226 :: The Axis2c environment has not been initialized
10227 :: An invalid log file path was specified during
initialization

How to set the unify to consume a .NET web service (C#)?

I got information about Axis and works with Apache but my server is IIS.

Regards.

Sergio Cerda

You do not have the required permissions to view the files attached to this post.

Sergio Cerda

Re: Consuming .NET Web Services

Post by Sergio Cerda » 06 Jan 2009, 16:55

 Posted by:  Sergio Cerda 

Hi again

I fixed the problem about Axis2, now my problem a call extern function

The function of the class code is
Function: HolaMundo
Description:
Returns
Boolean:
Parameters
String: sparametro
Receive String: sHolaMundoResult
Static Variables
Local variables
String: sFaultBody
Number: nError
Actions
If not SOAPConsumer_InitPayload( nEnv,
'HolaMundo','tdwsns','http://localhost/MiPrimerWS/','http://localhost/MiPrimerWS/HolaMundo',FALSE)
Return FALSE
Set LastFault = ''
If not SetupNamespaces()
Return FALSE
If not
SOAPConsumer_AddString(nEnv,'parametro',sparametro,'http://localhost/MiPrimerWS/','','','',XML_DTYPE_STRING,FALSE)
Return FALSE
If not SOAPConsumer_Invoke(nEnv)
Return FALSE
If not
SOAPConsumer_LoadResponse(nEnv,'HolaMundoResponse','http://localhost/MiPrimerWS/','',nError,sFaultBody)
Return FALSE
If nError = 1
Set LastFault = sFaultBody
If not
SOAPConsumer_GetString(nEnv,'HolaMundoResult','http://localhost/MiPrimerWS/',TRUE,TRUE,'',FALSE,XML_DTYPE_STRING,sHolaMundoResult)
Return FALSE
Return TRUE

The error appears when I call the function
SOAPConsumer_LoadResponse(nEnv,'HolaMundoResponse','http://localhost/MiPrimerWS/','',nError,sFaultBody)
and return FALSE.

I need help..

See the WSDL file from the last post..

Sergio Cerda

Sergio Cerda

Re: Consuming .NET Web Services

Post by Sergio Cerda » 06 Jan 2009, 20:12

 Posted by:  Sergio Cerda 

I fixed the problem..

I chenged the setting web.config the web service,

Regards

Sergio

Return to “td.web”

Who is online

Users browsing this forum: [Ccbot] and 1 guest