I can't speak for the WSDL import too, frankly in the many times I've tried
it it usually simply crashes, and the one time it didn't, it generated
*hundreds* of classes, so I've stopped fucking with it ;-)
I think the problem is likely to be in the way you're specifying the root
node of your request (that is mapped to a
messages_2008_1.platform.webservices.netsuite.com:login element). Check your
WSDLs and imported XSDs. I could be you've got a named request type of
LoginRequestType or something that's encoded as <login>, which contains a
type of CredentialsType or something like that which is also encoded as
<login>, and you can probably change the element definition for one of them.
But of course, I haven't seen your WSDL so I'm just guessing here!
-Josh
On Sat, Jun 21, 2008 at 4:44 AM, gnu wolf <[EMAIL PROTECTED]> wrote:
> Hi All,
>
> I have used the Import WSDL introspection tool by Flex builder and I manage
> to go around all the hassles and finally able to contact the web services
> endpoint of the WS server.
>
> BTW, thanks to Seth Hodgson for taking time to answer my queries in my
> previous emails and also to Josh McDonald.
>
> But right now i'm getting a user error:
>
> <soapenv:Body>
> <soapenv:Fault>
> <faultcode>soapenv:Server.userException</faultcode>
> <faultstring>com.netledger.common.schemabean.NLSchemaBeanException:
> passport not found on {urn:core_2008_1.platform.webservices.netsuite.com
> }Passport</faultstring>
> <detail>
> <ns1:hostname xmlns:ns1="http://xml.apache.org/axis/">
> partners-java008.svale.netledger.com</ns1:hostname>
> </detail>
> </soapenv:Fault>
> </soapenv:Body>
>
> Erroneous SOAP request I got from the logs:
>
> <SOAP-ENV:Body>
> <ns0:login xmlns:ns0="urn:
> messages_2008_1.platform.webservices.netsuite.com">
> <ns0:login>
> <ns0:passport>
> <platformCore:email xmlns:platformCore="urn:
> core_2008_1.platform.webservices.netsuite.com">clemen</platformCore:email>
> <platformCore:password xmlns:platformCore="urn:
> core_2008_1.platform.webservices.netsuite.com
> ">********</platformCore:password>
> <platformCore:account xmlns:platformCore="urn:
> core_2008_1.platform.webservices.netsuite.com
> ">724168</platformCore:account>
> <platformCore:role internalId="3" type=""
> xmlns:platformCore="urn:core_2008_1.platform.webservices.netsuite.com">
> <platformCore:name xsi:nil="true"/>
> </platformCore:role>
> </ns0:passport>
> </ns0:login>
> </ns0:login>
> </SOAP-ENV:Body>
>
> Looking at the SOAP request, I realized that the "login" element was
> generated twice. I believe this was a problem coming from the generated AS
> classes.
>
> Has anyone who used the WSDL introspection tool experienced this before?
>
> Any help or ideas will be appreciated.
>
> Thanks in advance.
>
> Clem
>
>
>
>
--
"Therefore, send not to know For whom the bell tolls. It tolls for thee."
:: Josh 'G-Funk' McDonald
:: 0437 221 380 :: [EMAIL PROTECTED]