Consume AS400 Web Service Problem

We have developed a web service on the AS400.  We are using ASP.Net to consume the service.  When no input parameters are defined, we receive data correctly,  when we define an input parameter, using visual studio 2012, we are not able to assign a value to the input parameter.

Dim wcfClient1 As WCSSHIPMNT.WCSSHIPMNTPortTypeClient = New WCSSHIPMNT.WCSSHIPMNTPortTypeClient

Dim wcfInput As WCSSHIPMNT.WCSSHIPMNTInput = New WCSSHIPMNT.WCSSHIPMNTInput

 wcfInput._PARMCUST = "12341234" (here we see "Value of type string cannot be converted to hank22.WCSSHIPMNT.PARMCUST

Any help would be appreciated


        Dim wcfResult1 As WCSSHIPMNT.WCSSHIPMNTResult = wcfClient1.wcsshipmnt(wcfInput)
LVL 13
samic400Asked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

gpizzutoCommented:
I don't know your library, but
is probably wcfInput._PARMCUST a collection or an array of parameters and not a single value ???
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
samic400Author Commented:
Your question triggered an idea for us and it answered the problem.   In the RPG program on the 400, we had defined the parm field as Dparmcust         S     8   forgetting to place an A after the 8, indicating it was a Alpha field.  When the WSDL was generated, it did not know what datatype to make the field, so it defaulted to the name of the field,  after correcting the rpg program, and checking the wsdl, the datatype came back as TEXT, and when VS resolved and created the classes and properties, it defined the type as string as it should have.  Problem solved, and thank you for  the brain tickler.
0
samic400Author Commented:
I've requested that this question be closed as follows:

Accepted answer: 0 points for samic400's comment #a39555443

for the following reason:

The reply made us think further and we were able to solve the issue
0
samic400Author Commented:
Your comment made us think further, and we solved the issue
0
samic400Author Commented:
Issue resolved
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Development

From novice to tech pro — start learning today.