Jump to content
Server Maintenance This Week. ×

360 Web assistant question


This topic is 5017 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Can web assistant handle authentication to a server using soap. example would be...

SOAP Request

POST /webserviceauthenticator.asmx HTTP/1.1

Host: webservices.seek.com.au

Content-Type: text/xml; charset=utf-8

Content-Length: length

SOAPAction: "http://webservices.seek.com.au/AuthenticateWS"

<?xml version="1.0" encoding="utf-8"?>

string

string

string

Edited by Guest
Link to comment
Share on other sites

Yes. You would pass in the entire SOAP payload as a parameter to the function WASetRawPostData.

There is nothing special about SOAP authentication Web Service operations, or any other SOAP operation, for that matter. They usually return some sort of token that you use for calls to other operations. It's just a basic post.

To make the entire call, you would make one call to WASetRequestHeader for every header name and value you want to set, followed by the aforementioned call to WASetRawPostData. Finally you would call WAGetURL, passing in the URL of the Web service endpoint as a parameter.

Check out the documentation at http://www.360works.com/plugins/WEBASSISTANTPLUG/documentation.html for more information on WASetRequestHeader, WASetRawPostData and WAGetURL and the rest of the plugin functions.

Link to comment
Share on other sites

Hi

Thanks again....Ok I have used WASetRequestHeader and WASetRawPostData and got a result of 1 which is fine. I am not sure what url I am supposed to use. I am supposed to receive a token if authentication passes. According to documentation i am working with these are the headers.

POST /webserviceauthenticator.asmx HTTP/1.1

Host: webservices.seek.com.au

Content-Type: text/xml; charset=utf-8

Content-Length: length

SOAPAction: "http://webservices.seek.com.au/AuthenticateWS"

Here is my calc. It returns 1 but how do i see the actual response?

WAReset and

WASetRequestHeader ( "Post" ; "/webserviceauthenticator.asmx HTTP/1.1" ) and

WASetRequestHeader ( "Content-Type:" ; "text/xml; charset=utf-8" ) and

WASetRequestHeader ( "Content-Length: " ; "1000" ) and

WASetRequestHeader ( "SOAPAction:" ; "http://webservices.seek.com.au/AuthenticateWS" ) and

WASetRawPostData ( "<?xml version="1.0" encoding="utf-8"?>

username

password

Uploader

") and

WAGetUrl("http://webservices.seek.com.au" ) and

WAGetResponseHeader ( "Post" )

Link to comment
Share on other sites

This topic is 5017 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.