netbeans SOAP operation returns null, but in SOAPUI works correctly












1















I imported wsdl-file for service into Netbeans java project and one of operations not working correctly - returns null int array. But in SOAPUI everything is okenter image description here



Netbeans SOAP request is



<?xml version="1.0" ?><S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/"><S:Body><ns2:getDefectsQueueRequest xmlns:ns2="eds:DefectsService"><OrgID>600</OrgID></ns2:getDefectsQueueRequest></S:Body></S:Envelope>


Netbeans responce is



<?xml version="1.0" encoding="utf-8"?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><soapenv:Body><getDefectsQueueResponse xmlns=""><RegNums><RegNum>174272</RegNum><RegNum>174273</RegNum><RegNum>174274</RegNum></RegNums></getDefectsQueueResponse></soapenv:Body></soapenv:Envelope>


SOAPUI request is



<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:eds="eds:DefectsService">
<soapenv:Header/>
<soapenv:Body>
<eds:getDefectsQueueRequest>
<OrgID>600</OrgID>
</eds:getDefectsQueueRequest>
</soapenv:Body>
</soapenv:Envelope>


SOAPUI responce is



<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soapenv:Body>
<getDefectsQueueResponse>
<RegNums>
<RegNum>174272</RegNum>
<RegNum>174273</RegNum>
<RegNum>174274</RegNum>
</RegNums>
</getDefectsQueueResponse>
</soapenv:Body>
</soapenv:Envelope>


There is correct data in response, but dqr.getRegNums().getItem() returns null










share|improve this question

























  • Please edit your question to include the requests (from both Netbeans and SoapUI) as well as the responses as text

    – Jeroen Steenbeeke
    Nov 20 '18 at 9:55






  • 1





    of course, i'm sorry

    – Иван Васильев
    Nov 20 '18 at 10:06











  • There's not much of a difference between both your requests and responses (namespace definition locations mostly) so the error is in the translation from SOAP to Java somewhere.

    – Jeroen Steenbeeke
    Nov 20 '18 at 10:24











  • I see, but i use standart netbeans tools for generating soap requests. There is not any manual converting etc. So I can't understand where can be an error...

    – Иван Васильев
    Nov 20 '18 at 10:34






  • 1





    thank you, it was an error in server wsdl

    – Иван Васильев
    Nov 21 '18 at 12:21
















1















I imported wsdl-file for service into Netbeans java project and one of operations not working correctly - returns null int array. But in SOAPUI everything is okenter image description here



Netbeans SOAP request is



<?xml version="1.0" ?><S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/"><S:Body><ns2:getDefectsQueueRequest xmlns:ns2="eds:DefectsService"><OrgID>600</OrgID></ns2:getDefectsQueueRequest></S:Body></S:Envelope>


Netbeans responce is



<?xml version="1.0" encoding="utf-8"?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><soapenv:Body><getDefectsQueueResponse xmlns=""><RegNums><RegNum>174272</RegNum><RegNum>174273</RegNum><RegNum>174274</RegNum></RegNums></getDefectsQueueResponse></soapenv:Body></soapenv:Envelope>


SOAPUI request is



<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:eds="eds:DefectsService">
<soapenv:Header/>
<soapenv:Body>
<eds:getDefectsQueueRequest>
<OrgID>600</OrgID>
</eds:getDefectsQueueRequest>
</soapenv:Body>
</soapenv:Envelope>


SOAPUI responce is



<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soapenv:Body>
<getDefectsQueueResponse>
<RegNums>
<RegNum>174272</RegNum>
<RegNum>174273</RegNum>
<RegNum>174274</RegNum>
</RegNums>
</getDefectsQueueResponse>
</soapenv:Body>
</soapenv:Envelope>


There is correct data in response, but dqr.getRegNums().getItem() returns null










share|improve this question

























  • Please edit your question to include the requests (from both Netbeans and SoapUI) as well as the responses as text

    – Jeroen Steenbeeke
    Nov 20 '18 at 9:55






  • 1





    of course, i'm sorry

    – Иван Васильев
    Nov 20 '18 at 10:06











  • There's not much of a difference between both your requests and responses (namespace definition locations mostly) so the error is in the translation from SOAP to Java somewhere.

    – Jeroen Steenbeeke
    Nov 20 '18 at 10:24











  • I see, but i use standart netbeans tools for generating soap requests. There is not any manual converting etc. So I can't understand where can be an error...

    – Иван Васильев
    Nov 20 '18 at 10:34






  • 1





    thank you, it was an error in server wsdl

    – Иван Васильев
    Nov 21 '18 at 12:21














1












1








1








I imported wsdl-file for service into Netbeans java project and one of operations not working correctly - returns null int array. But in SOAPUI everything is okenter image description here



Netbeans SOAP request is



<?xml version="1.0" ?><S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/"><S:Body><ns2:getDefectsQueueRequest xmlns:ns2="eds:DefectsService"><OrgID>600</OrgID></ns2:getDefectsQueueRequest></S:Body></S:Envelope>


Netbeans responce is



<?xml version="1.0" encoding="utf-8"?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><soapenv:Body><getDefectsQueueResponse xmlns=""><RegNums><RegNum>174272</RegNum><RegNum>174273</RegNum><RegNum>174274</RegNum></RegNums></getDefectsQueueResponse></soapenv:Body></soapenv:Envelope>


SOAPUI request is



<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:eds="eds:DefectsService">
<soapenv:Header/>
<soapenv:Body>
<eds:getDefectsQueueRequest>
<OrgID>600</OrgID>
</eds:getDefectsQueueRequest>
</soapenv:Body>
</soapenv:Envelope>


SOAPUI responce is



<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soapenv:Body>
<getDefectsQueueResponse>
<RegNums>
<RegNum>174272</RegNum>
<RegNum>174273</RegNum>
<RegNum>174274</RegNum>
</RegNums>
</getDefectsQueueResponse>
</soapenv:Body>
</soapenv:Envelope>


There is correct data in response, but dqr.getRegNums().getItem() returns null










share|improve this question
















I imported wsdl-file for service into Netbeans java project and one of operations not working correctly - returns null int array. But in SOAPUI everything is okenter image description here



Netbeans SOAP request is



<?xml version="1.0" ?><S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/"><S:Body><ns2:getDefectsQueueRequest xmlns:ns2="eds:DefectsService"><OrgID>600</OrgID></ns2:getDefectsQueueRequest></S:Body></S:Envelope>


Netbeans responce is



<?xml version="1.0" encoding="utf-8"?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><soapenv:Body><getDefectsQueueResponse xmlns=""><RegNums><RegNum>174272</RegNum><RegNum>174273</RegNum><RegNum>174274</RegNum></RegNums></getDefectsQueueResponse></soapenv:Body></soapenv:Envelope>


SOAPUI request is



<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:eds="eds:DefectsService">
<soapenv:Header/>
<soapenv:Body>
<eds:getDefectsQueueRequest>
<OrgID>600</OrgID>
</eds:getDefectsQueueRequest>
</soapenv:Body>
</soapenv:Envelope>


SOAPUI responce is



<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soapenv:Body>
<getDefectsQueueResponse>
<RegNums>
<RegNum>174272</RegNum>
<RegNum>174273</RegNum>
<RegNum>174274</RegNum>
</RegNums>
</getDefectsQueueResponse>
</soapenv:Body>
</soapenv:Envelope>


There is correct data in response, but dqr.getRegNums().getItem() returns null







java soap netbeans






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 20 '18 at 10:05







Иван Васильев

















asked Nov 20 '18 at 9:51









Иван ВасильевИван Васильев

1914




1914













  • Please edit your question to include the requests (from both Netbeans and SoapUI) as well as the responses as text

    – Jeroen Steenbeeke
    Nov 20 '18 at 9:55






  • 1





    of course, i'm sorry

    – Иван Васильев
    Nov 20 '18 at 10:06











  • There's not much of a difference between both your requests and responses (namespace definition locations mostly) so the error is in the translation from SOAP to Java somewhere.

    – Jeroen Steenbeeke
    Nov 20 '18 at 10:24











  • I see, but i use standart netbeans tools for generating soap requests. There is not any manual converting etc. So I can't understand where can be an error...

    – Иван Васильев
    Nov 20 '18 at 10:34






  • 1





    thank you, it was an error in server wsdl

    – Иван Васильев
    Nov 21 '18 at 12:21



















  • Please edit your question to include the requests (from both Netbeans and SoapUI) as well as the responses as text

    – Jeroen Steenbeeke
    Nov 20 '18 at 9:55






  • 1





    of course, i'm sorry

    – Иван Васильев
    Nov 20 '18 at 10:06











  • There's not much of a difference between both your requests and responses (namespace definition locations mostly) so the error is in the translation from SOAP to Java somewhere.

    – Jeroen Steenbeeke
    Nov 20 '18 at 10:24











  • I see, but i use standart netbeans tools for generating soap requests. There is not any manual converting etc. So I can't understand where can be an error...

    – Иван Васильев
    Nov 20 '18 at 10:34






  • 1





    thank you, it was an error in server wsdl

    – Иван Васильев
    Nov 21 '18 at 12:21

















Please edit your question to include the requests (from both Netbeans and SoapUI) as well as the responses as text

– Jeroen Steenbeeke
Nov 20 '18 at 9:55





Please edit your question to include the requests (from both Netbeans and SoapUI) as well as the responses as text

– Jeroen Steenbeeke
Nov 20 '18 at 9:55




1




1





of course, i'm sorry

– Иван Васильев
Nov 20 '18 at 10:06





of course, i'm sorry

– Иван Васильев
Nov 20 '18 at 10:06













There's not much of a difference between both your requests and responses (namespace definition locations mostly) so the error is in the translation from SOAP to Java somewhere.

– Jeroen Steenbeeke
Nov 20 '18 at 10:24





There's not much of a difference between both your requests and responses (namespace definition locations mostly) so the error is in the translation from SOAP to Java somewhere.

– Jeroen Steenbeeke
Nov 20 '18 at 10:24













I see, but i use standart netbeans tools for generating soap requests. There is not any manual converting etc. So I can't understand where can be an error...

– Иван Васильев
Nov 20 '18 at 10:34





I see, but i use standart netbeans tools for generating soap requests. There is not any manual converting etc. So I can't understand where can be an error...

– Иван Васильев
Nov 20 '18 at 10:34




1




1





thank you, it was an error in server wsdl

– Иван Васильев
Nov 21 '18 at 12:21





thank you, it was an error in server wsdl

– Иван Васильев
Nov 21 '18 at 12:21












0






active

oldest

votes











Your Answer






StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");

StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53390304%2fnetbeans-soap-operation-returns-null-but-in-soapui-works-correctly%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes
















draft saved

draft discarded




















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53390304%2fnetbeans-soap-operation-returns-null-but-in-soapui-works-correctly%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

How to change which sound is reproduced for terminal bell?

Title Spacing in Bjornstrup Chapter, Removing Chapter Number From Contents

Can I use Tabulator js library in my java Spring + Thymeleaf project?