Web Service Proxy Generator
Bug in the new WSDL Generator?
Gravatar is a globally recognized avatar based on your email address. Bug in the new WSDL Generator?
  PoG
  All
  Oct 7, 2015 @ 03:45am
Hi!

I've been using the WSDL tool with my VFP9 and it has worked great.
Recently, I generated a new proxy for the web service I've been calling successfully for quite some time with the latest version of the generator, but I can't get it to work. After drilling down and debugging as far as I can go, I see that it comes up with a message saying (Translated from Swedish) "OLE Dispatch error: An object of the type System.Int32 cannot be given a value of the type System.String..."
This happens in wwdotnetbridge, procedure invokemethod when it tries to execute this line:
loResult = loBridge.InvokeMethod_TwoParms(loObject, lcMethod,lvParm1, lvParm2)
At that event it is caught in the "Try - Catch to" statement, and when debugging I can also see the error text.
If I copy back the previous FlexForceProxy .prg and .dll together with the .cs, it runs fine, although the wwdotnetbridge files and wwipstuff are from the newer version of the generator.

The webservice is located at:
http://apiftp.quinyx.com/FlexForceWebServices.php?wsdl

Any ideas? Thankful for any help!

/PoG


Gravatar is a globally recognized avatar based on your email address. Re: Bug in the new WSDL Generator?
  Rick Strahl
  PoG
  Oct 7, 2015 @ 10:59am

You're passing an invalid parameter to the method most likely. Make sure all your types match the signature of the method you are calling. You're passing a string where an INI is expected.

+++ Rick ---



Hi!

I've been using the WSDL tool with my VFP9 and it has worked great.
Recently, I generated a new proxy for the web service I've been calling successfully for quite some time with the latest version of the generator, but I can't get it to work. After drilling down and debugging as far as I can go, I see that it comes up with a message saying (Translated from Swedish) "OLE Dispatch error: An object of the type System.Int32 cannot be given a value of the type System.String..."
This happens in wwdotnetbridge, procedure invokemethod when it tries to execute this line:
loResult = loBridge.InvokeMethod_TwoParms(loObject, lcMethod,lvParm1, lvParm2)
At that event it is caught in the "Try - Catch to" statement, and when debugging I can also see the error text.
If I copy back the previous FlexForceProxy .prg and .dll together with the .cs, it runs fine, although the wwdotnetbridge files and wwipstuff are from the newer version of the generator.

The webservice is located at:
http://apiftp.quinyx.com/FlexForceWebServices.php?wsdl

Any ideas? Thankful for any help!

/PoG



Rick Strahl
West Wind Technologies

Making waves on the Web
from Maui

Gravatar is a globally recognized avatar based on your email address. Re: Bug in the new WSDL Generator?
  PoG
  Rick Strahl
  Oct 7, 2015 @ 09:27pm
Well, like I wrote, the code I'm using is the same, the only thing I change is the flexforceproxy prg, dll and c. With the old version it works, with the new it doesn't.
My understanding is that the generator query the web service, and defines the arrays needed for the different requests available. This also means that normally, when uploading information you will get an error already when you try to fill the array in each item with an erroneous value, for ex a string instead of an integer.
I have also tried to strip out much of the information, so I only fill out a few fields (and thereby the remaining ones should be of the pre-defined type), but the same problem occurs.
I haven't got around to try other calls, as I got stuck on this one immediately, but I will try to do some simulations later on.

Still, it appears there's a problem with either the web service (which doesn't sound so logical as it again works with the old version), or the new generator.

Best Regards,

PoG

You're passing an invalid parameter to the method most likely. Make sure all your types match the signature of the method you are calling. You're passing a string where an INI is expected.

+++ Rick ---



Hi!

I've been using the WSDL tool with my VFP9 and it has worked great.
Recently, I generated a new proxy for the web service I've been calling successfully for quite some time with the latest version of the generator, but I can't get it to work. After drilling down and debugging as far as I can go, I see that it comes up with a message saying (Translated from Swedish) "OLE Dispatch error: An object of the type System.Int32 cannot be given a value of the type System.String..."
This happens in wwdotnetbridge, procedure invokemethod when it tries to execute this line:
loResult = loBridge.InvokeMethod_TwoParms(loObject, lcMethod,lvParm1, lvParm2)
At that event it is caught in the "Try - Catch to" statement, and when debugging I can also see the error text.
If I copy back the previous FlexForceProxy .prg and .dll together with the .cs, it runs fine, although the wwdotnetbridge files and wwipstuff are from the newer version of the generator.

The webservice is located at:
http://apiftp.quinyx.com/FlexForceWebServices.php?wsdl

Any ideas? Thankful for any help!

/PoG



Gravatar is a globally recognized avatar based on your email address. Re: Bug in the new WSDL Generator?
  Rick Strahl
  PoG
  Oct 7, 2015 @ 09:50pm

Did you regenerate the WSDL with the new version? Maybe the WSDL has changed in the meantime.

All I can tell you is that the message is asking for an integer and not a string.

Look in Reflector to see the exact signature of the method you are trying to call and see what the parameter types are.

+++ Rick ---



Well, like I wrote, the code I'm using is the same, the only thing I change is the flexforceproxy prg, dll and c. With the old version it works, with the new it doesn't.
My understanding is that the generator query the web service, and defines the arrays needed for the different requests available. This also means that normally, when uploading information you will get an error already when you try to fill the array in each item with an erroneous value, for ex a string instead of an integer.
I have also tried to strip out much of the information, so I only fill out a few fields (and thereby the remaining ones should be of the pre-defined type), but the same problem occurs.
I haven't got around to try other calls, as I got stuck on this one immediately, but I will try to do some simulations later on.

Still, it appears there's a problem with either the web service (which doesn't sound so logical as it again works with the old version), or the new generator.

Best Regards,

PoG

You're passing an invalid parameter to the method most likely. Make sure all your types match the signature of the method you are calling. You're passing a string where an INI is expected.

+++ Rick ---



Hi!

I've been using the WSDL tool with my VFP9 and it has worked great.
Recently, I generated a new proxy for the web service I've been calling successfully for quite some time with the latest version of the generator, but I can't get it to work. After drilling down and debugging as far as I can go, I see that it comes up with a message saying (Translated from Swedish) "OLE Dispatch error: An object of the type System.Int32 cannot be given a value of the type System.String..."
This happens in wwdotnetbridge, procedure invokemethod when it tries to execute this line:
loResult = loBridge.InvokeMethod_TwoParms(loObject, lcMethod,lvParm1, lvParm2)
At that event it is caught in the "Try - Catch to" statement, and when debugging I can also see the error text.
If I copy back the previous FlexForceProxy .prg and .dll together with the .cs, it runs fine, although the wwdotnetbridge files and wwipstuff are from the newer version of the generator.

The webservice is located at:
http://apiftp.quinyx.com/FlexForceWebServices.php?wsdl

Any ideas? Thankful for any help!

/PoG






Rick Strahl
West Wind Technologies

Making waves on the Web
from Maui

Gravatar is a globally recognized avatar based on your email address. Re: Bug in the new WSDL Generator?
  PoG
  Rick Strahl
  Oct 7, 2015 @ 10:15pm
Yes, I did regenerate it. And from what I can see in the Reflector everything looks OK there.

And yes, it is a bit frustrating to not get more information on exactly what item is incorrect.
However, I do get the impression the error is generated before it is calling the WS, it seems there's a mismatch when creating the com array.
I will run another pass with the Fiddler to see if it starts something up or if the WS never is called.

Best Regards,

/PoG

Did you regenerate the WSDL with the new version? Maybe the WSDL has changed in the meantime.

All I can tell you is that the message is asking for an integer and not a string.

Look in Reflector to see the exact signature of the method you are trying to call and see what the parameter types are.

+++ Rick ---



Well, like I wrote, the code I'm using is the same, the only thing I change is the flexforceproxy prg, dll and c. With the old version it works, with the new it doesn't.
My understanding is that the generator query the web service, and defines the arrays needed for the different requests available. This also means that normally, when uploading information you will get an error already when you try to fill the array in each item with an erroneous value, for ex a string instead of an integer.
I have also tried to strip out much of the information, so I only fill out a few fields (and thereby the remaining ones should be of the pre-defined type), but the same problem occurs.
I haven't got around to try other calls, as I got stuck on this one immediately, but I will try to do some simulations later on.

Still, it appears there's a problem with either the web service (which doesn't sound so logical as it again works with the old version), or the new generator.

Best Regards,

PoG

You're passing an invalid parameter to the method most likely. Make sure all your types match the signature of the method you are calling. You're passing a string where an INI is expected.

+++ Rick ---



Hi!

I've been using the WSDL tool with my VFP9 and it has worked great.
Recently, I generated a new proxy for the web service I've been calling successfully for quite some time with the latest version of the generator, but I can't get it to work. After drilling down and debugging as far as I can go, I see that it comes up with a message saying (Translated from Swedish) "OLE Dispatch error: An object of the type System.Int32 cannot be given a value of the type System.String..."
This happens in wwdotnetbridge, procedure invokemethod when it tries to execute this line:
loResult = loBridge.InvokeMethod_TwoParms(loObject, lcMethod,lvParm1, lvParm2)
At that event it is caught in the "Try - Catch to" statement, and when debugging I can also see the error text.
If I copy back the previous FlexForceProxy .prg and .dll together with the .cs, it runs fine, although the wwdotnetbridge files and wwipstuff are from the newer version of the generator.

The webservice is located at:
http://apiftp.quinyx.com/FlexForceWebServices.php?wsdl

Any ideas? Thankful for any help!

/PoG






Gravatar is a globally recognized avatar based on your email address. Re: Bug in the new WSDL Generator?
  Rick Strahl
  PoG
  Oct 8, 2015 @ 12:23pm

I can't help you with this vague information you are providing. You need to post a more precise example, but either way the error is pretty clear - an invalid value is being passed to the function.

This either means YOU are passing an invalid value (likely) or the function you are calling internally has an error that is causing that error (unlikely since you can't assign something of the wrong type). Most likely your parameters are not of the correct type and you are passing a string instead of an INT.

+++ Rick ---


Yes, I did regenerate it. And from what I can see in the Reflector everything looks OK there.

And yes, it is a bit frustrating to not get more information on exactly what item is incorrect.
However, I do get the impression the error is generated before it is calling the WS, it seems there's a mismatch when creating the com array.
I will run another pass with the Fiddler to see if it starts something up or if the WS never is called.

Best Regards,

/PoG

Did you regenerate the WSDL with the new version? Maybe the WSDL has changed in the meantime.

All I can tell you is that the message is asking for an integer and not a string.

Look in Reflector to see the exact signature of the method you are trying to call and see what the parameter types are.

+++ Rick ---



Well, like I wrote, the code I'm using is the same, the only thing I change is the flexforceproxy prg, dll and c. With the old version it works, with the new it doesn't.
My understanding is that the generator query the web service, and defines the arrays needed for the different requests available. This also means that normally, when uploading information you will get an error already when you try to fill the array in each item with an erroneous value, for ex a string instead of an integer.
I have also tried to strip out much of the information, so I only fill out a few fields (and thereby the remaining ones should be of the pre-defined type), but the same problem occurs.
I haven't got around to try other calls, as I got stuck on this one immediately, but I will try to do some simulations later on.

Still, it appears there's a problem with either the web service (which doesn't sound so logical as it again works with the old version), or the new generator.

Best Regards,

PoG

You're passing an invalid parameter to the method most likely. Make sure all your types match the signature of the method you are calling. You're passing a string where an INI is expected.

+++ Rick ---



Hi!

I've been using the WSDL tool with my VFP9 and it has worked great.
Recently, I generated a new proxy for the web service I've been calling successfully for quite some time with the latest version of the generator, but I can't get it to work. After drilling down and debugging as far as I can go, I see that it comes up with a message saying (Translated from Swedish) "OLE Dispatch error: An object of the type System.Int32 cannot be given a value of the type System.String..."
This happens in wwdotnetbridge, procedure invokemethod when it tries to execute this line:
loResult = loBridge.InvokeMethod_TwoParms(loObject, lcMethod,lvParm1, lvParm2)
At that event it is caught in the "Try - Catch to" statement, and when debugging I can also see the error text.
If I copy back the previous FlexForceProxy .prg and .dll together with the .cs, it runs fine, although the wwdotnetbridge files and wwipstuff are from the newer version of the generator.

The webservice is located at:
http://apiftp.quinyx.com/FlexForceWebServices.php?wsdl

Any ideas? Thankful for any help!

/PoG








Rick Strahl
West Wind Technologies

Making waves on the Web
from Hood River

Gravatar is a globally recognized avatar based on your email address. Re: Bug in the new WSDL Generator?
  PoG
  Rick Strahl
  Oct 9, 2015 @ 01:59am
Problem solved!

It turned out that the web service had changed a tag from Integer to string.
However, the reason why this wasn't reflected when generating a new proxy is quite silly.
When generating, you can specify in what folder to save the files. After that, you get an option to copy files and dependencies to that folder.
Now, if there are any old files left at the default generation folder, they will be copied and thereby overwrite the new files. And this is what happened...
So, perhaps it could be a good idea to either automatically copy all required files to the selected folder (which make sense since you have specified where you want the files), or just copy the dependencies.

Anyway, I'm glad I can move on with the project now.

Best Regards,

/PoG.

I can't help you with this vague information you are providing. You need to post a more precise example, but either way the error is pretty clear - an invalid value is being passed to the function.

This either means YOU are passing an invalid value (likely) or the function you are calling internally has an error that is causing that error (unlikely since you can't assign something of the wrong type). Most likely your parameters are not of the correct type and you are passing a string instead of an INT.

+++ Rick ---


Yes, I did regenerate it. And from what I can see in the Reflector everything looks OK there.

And yes, it is a bit frustrating to not get more information on exactly what item is incorrect.
However, I do get the impression the error is generated before it is calling the WS, it seems there's a mismatch when creating the com array.
I will run another pass with the Fiddler to see if it starts something up or if the WS never is called.

Best Regards,

/PoG

Did you regenerate the WSDL with the new version? Maybe the WSDL has changed in the meantime.

All I can tell you is that the message is asking for an integer and not a string.

Look in Reflector to see the exact signature of the method you are trying to call and see what the parameter types are.

+++ Rick ---



Well, like I wrote, the code I'm using is the same, the only thing I change is the flexforceproxy prg, dll and c. With the old version it works, with the new it doesn't.
My understanding is that the generator query the web service, and defines the arrays needed for the different requests available. This also means that normally, when uploading information you will get an error already when you try to fill the array in each item with an erroneous value, for ex a string instead of an integer.
I have also tried to strip out much of the information, so I only fill out a few fields (and thereby the remaining ones should be of the pre-defined type), but the same problem occurs.
I haven't got around to try other calls, as I got stuck on this one immediately, but I will try to do some simulations later on.

Still, it appears there's a problem with either the web service (which doesn't sound so logical as it again works with the old version), or the new generator.

Best Regards,

PoG

You're passing an invalid parameter to the method most likely. Make sure all your types match the signature of the method you are calling. You're passing a string where an INI is expected.

+++ Rick ---



Hi!

I've been using the WSDL tool with my VFP9 and it has worked great.
Recently, I generated a new proxy for the web service I've been calling successfully for quite some time with the latest version of the generator, but I can't get it to work. After drilling down and debugging as far as I can go, I see that it comes up with a message saying (Translated from Swedish) "OLE Dispatch error: An object of the type System.Int32 cannot be given a value of the type System.String..."
This happens in wwdotnetbridge, procedure invokemethod when it tries to execute this line:
loResult = loBridge.InvokeMethod_TwoParms(loObject, lcMethod,lvParm1, lvParm2)
At that event it is caught in the "Try - Catch to" statement, and when debugging I can also see the error text.
If I copy back the previous FlexForceProxy .prg and .dll together with the .cs, it runs fine, although the wwdotnetbridge files and wwipstuff are from the newer version of the generator.

The webservice is located at:
http://apiftp.quinyx.com/FlexForceWebServices.php?wsdl

Any ideas? Thankful for any help!

/PoG








© 1996-2024