logo

New Response

« Return to the blog entry

You are replying to:

    • avatar
    • Richard C
    • Posted on Fri 23 Oct 2009 03:46 AM

    @Jake: "Work out why it won't let you change/rebuild the content between multiple calls to the Send method"

    If you're "reusing" the same class variables, then it may not work (in classes I suspect). I'm no guru with Classes - I'm simply a beginner in that area.

    You might need to "redim"/"reset" the object(s) variables in order to rebuild the content ... I had this problem when using a "Web Service Consumer" - I couldn't reuse the same variable within the same function call.

    ie:

    /* code that does not work when using webservice classes */

    Dim thisValue as new XSD_String

    thisValue.setValueFromString( "25" )

    Set theObject.classVariable1 = thisValue

    thisValue.setValueFromString( "35" )

    Set theObject.classVariable2 = thisValue

    Using the above code, my "Web Service Consumer" agent said that theObject.classVariable1's value is 35 - not 25!

    To fix this:

    /* code that works when using webservice classes */

    Dim thisValue1 as new XSD_String

    thisValue1.setValueFromString( "25" )

    Set theObject.classVariable1 = thisValue1

    Dim thisValue2 as new XSD_String

    thisValue2.setValueFromString( "35" )

    Set theObject.classVariable2 = thisValue2

    Now, theObject.classVariable1's value is 25 and theObject.classVariable2's value is 35.

Your Comments

Name:
E-mail:
(optional)
Website:
(optional)
Comment: