[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Help with new method?



Alvin and Scott,

I assume that the programming language of the example code is VBScript and 
the the complete example is taken from here:

   http://www.shipwire.com/exec/XML_Order_ASP_sample_code.htm

A description of the "open" methof of "ServerXMLHTTP" can be found here:

   http://msdn.microsoft.com/en-us/library/ms763809%28VS.85%29.aspx

Regading to that description the "false" indicates a synchronous call 
which is exactly what HTTP API does.

<quote>
bAsync(optional)
   Boolean. Indicator as to whether the call is asynchronous. 
   The default is False (the call does not return immediately).
</quote>

Thomas.


ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx schrieb am 05.05.2010 06:59:46:

> Von:
> 
> sk@xxxxxxxxxxxxxxxx
> 
> An:
> 
> ftpapi@xxxxxxxxxxxxxxxxxxxxxx
> 
> Datum:
> 
> 05.05.2010 07:04
> 
> Betreff:
> 
> Re: Help with new method?
> 
> Gesendet von:
> 
> ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx
> 
> Hi Alvin,
> 
> Which programming language was that code written in?  I don't recognize 
> the syntax.  You'll need to look up the parameters for the 'open' method 

> of the "Microsoft.XMLHTTP" class in whatever programming language that 
> is...  this'll tell you what 'false' does.
> 
> Good luck!
> 
> 
> Alvin Strasburger wrote:
> >    We have now been successful with posting XML and SOAP requests and
> >    parsing the replies as well as using the WEBFORMS tool to send 
simple
> >    strings.  We have tried to learn as much as we could in the 
process.
> >    Unfortunately, we have much more knowledge about RPG programming 
and
> >    business logic than we have about web programming.
> > 
> > 
> >     We are in the final stages of integrating freight rating into our
> >    order entry system and do not quite understand what is required for
> >    one specific carrier's system.  We have found the following excerpt
> >    from an example in their documentation and help translating it to 
the
> >    "HTTPAPI language".
> > 
> > 
> > set httpConn = Server.CreateObject("Microsoft.XMLHTTP")
> > 'or alternately depending on what is installed on your server:
> > 'set httpConn = Server.CreateObject("MSXML2.ServerXMLHTTP")
> > 'or whatever parser you have installed
> > 
> > ' open synchronous connection to X-ShipmentStatus
> > httpConn.open "POST",xxxxxxXmlUrl,false,username,password
> > 
> > 
> > 'set post data type, and post data 
> > httpConn.setRequestHeader "Content-type","application/x-www-form-
> urlencoded" 
> > httpConn.Send requestType & "=" & xmlRequest
> > 
> > 
> >    We know that xxxxxXmlUrl is a constant containing the URL and that
> >    xmlRequest is a constant containing the XML of our request.  We 
also
> >    know the ID and Password.  We also know that we need to send the ID
> >    and PW first in order to log in.  We are not sure what the 
parameter
> >    false is for.  It is not documented as a constant.
> > 
> > 
> >    Can someone help us by listing the specific functions we need to 
call
> >    and in what order?
> > 
> > 
> >    Thanks,
> > 
> >    Alvin
> > 
> >    Alvin Strasburger
> > 
> >    Printgear Sportswear
> > 
> >    Phone    803-744-2310
> > 
> >    Toll Free 800-763-7763
> > 
> >    [1]mailto:alvins@xxxxxxxxxxxxx
> > 
> >    [2]www.printgear.com
> > 
> > References
> > 
> >    1. mailto:alvins@xxxxxxxxxxxxx
> >    2. http://www.printgear.com/
> > 
> > 
> > 
> > 
------------------------------------------------------------------------
> > 
> > 
-----------------------------------------------------------------------
> > This is the FTPAPI mailing list.  To unsubscribe, please go to:
> > http://www.scottklement.com/mailman/listinfo/ftpapi
> > 
-----------------------------------------------------------------------
> 
> -----------------------------------------------------------------------
> This is the FTPAPI mailing list.  To unsubscribe, please go to:
> http://www.scottklement.com/mailman/listinfo/ftpapi
> -----------------------------------------------------------------------
> 


--
IMPORTANT NOTICE:
This email is confidential, may be legally privileged, and is for the
intended recipient only. Access, disclosure, copying, distribution, or
reliance on any of it by anyone else is prohibited and may be a criminal
offence. Please delete if obtained in error and email confirmation to the sender.
-----------------------------------------------------------------------
This is the FTPAPI mailing list.  To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------