Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Application Error: Duplicate use of XXXX type name. Consider using classified types. #158

Closed
shiju-d opened this issue Oct 13, 2014 · 6 comments

Comments

@shiju-d
Copy link

shiju-d commented Oct 13, 2014

Hi,

Getting "Application Error: Duplicate use of ResponseHeader type name. Consider using classified types." when I am trying to render to different soap actions with same response header. Please help me out to tackle this issue.

Action 1
soap_action 'action1',
args: {
apiUser: :string,
apiPass: :string
},
return: {
action1result: {
response_header:{
err_no: :string,
err_no_desc: :string
},
results: {
}
}
},
to: :get_action1


Action2
soap_action 'action2',
args: {
apiUser: :string,
apiPass: :string
},
return: {
action2result: {
response_header:{
err_no: :string,
err_no_desc: :string
},
results: {
}
}
},
to: :get_action2

Thanks.

@shiju-d shiju-d closed this as completed Oct 14, 2014
@CR4567
Copy link

CR4567 commented Feb 6, 2018

Hey,

how did you handle this? I have the same problem.
Did you use the WashOut Types?

@Ramanpreetsingh
Copy link

Did anyone find a solution to this issue? I'm also facing this issue.

@CR4567
Copy link

CR4567 commented Mar 7, 2018

No I didn't find a perfect solution. But in my case I figured out that the api is working and it's just a problem for the wsdl builder.

@Ramanpreetsingh
Copy link

Ramanpreetsingh commented Mar 7, 2018

Okay. Can you look into this issue : #251

It's a different issue, but any help is appreciated.

@Ramanpreetsingh
Copy link

To call the API from Savon (SOAP UI or any other client), initially GET wsdl action is invoked, and it throws an error there if you have any duplicate usage. How can you expect it to work when you are calling the API?

@CR4567
Copy link

CR4567 commented Mar 9, 2018

ok my example is a little bit different.. I'm using it for the connection to an external service provider.
So I get a wsdl file from him, which I use as reference. So I don't you the one that wash_out is generating. Because that's not working the way I would expect it.

That's a really bad fix especially if you want to generate your own api but it's working at least.

Sorry can't give you a better fix right now.
I'm sure there is a way to fix it with wash_out but I didn't figure out how....

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants