http://wsintegra.maximaweb.com.br/maximawebservice.svc?wsdl
How i obtain result the method listarproduto?
do wwDotNetBridge
DO maximawebserviceproxy
loProxy = CREATEOBJECT("maximawebserviceProxy","V2")
? loProxy.Init("V2",.T.)
? loProxy.LOadservice("V2")
loProduto2 = loProxy.listarproduto("9d777a6f-5311-4c50-89e5-e091d8c89399","123456")
? loProduto2.InfoRetorno
Always return .null. why?
Please Help me!
http://wsintegra.maximaweb.com.br/maximawebservice.svc?wsdl
How i obtain result the method listarproduto?
do wwDotNetBridge
DO maximawebserviceproxy
loProxy = CREATEOBJECT("maximawebserviceProxy","V2")
? loProxy.Init("V2",.T.)
? loProxy.LOadservice("V2")
loProduto2 = loProxy.listarproduto("9d777a6f-5311-4c50-89e5-e091d8c89399","123456")
? loProduto2.InfoRetorno
Always return .null. why?
Give me an example please
Please Help me!
http://wsintegra.maximaweb.com.br/maximawebservice.svc?wsdl
How i obtain result the method listarproduto?
do wwDotNetBridge
DO maximawebserviceproxy
loProxy = CREATEOBJECT("maximawebserviceProxy","V2")
? loProxy.Init("V2",.T.)
? loProxy.LOadservice("V2")
loProduto2 = loProxy.listarproduto("9d777a6f-5311-4c50-89e5-e091d8c89399","123456")
? loProduto2.InfoRetorno
Always return .null. why?
Give me an example please
I want read into cursor command browse, is this possible?
Please Help me!
http://wsintegra.maximaweb.com.br/maximawebservice.svc?wsdl
How i obtain result the method listarproduto?
do wwDotNetBridge
DO maximawebserviceproxy
loProxy = CREATEOBJECT("maximawebserviceProxy","V2")
? loProxy.Init("V2",.T.)
? loProxy.LOadservice("V2")
loProduto2 = loProxy.listarproduto("9d777a6f-5311-4c50-89e5-e091d8c89399","123456")
? loProduto2.InfoRetorno
Always return .null. why?
Give me an example please
I want read into cursor command browse, is this possible?
Please Help me!
http://wsintegra.maximaweb.com.br/maximawebservice.svc?wsdl
How i obtain result the method listarproduto?
do wwDotNetBridge
DO maximawebserviceproxy
loProxy = CREATEOBJECT("maximawebserviceProxy","V2")
? loProxy.Init("V2",.T.)
? loProxy.LOadservice("V2")
loProduto2 = loProxy.listarproduto("9d777a6f-5311-4c50-89e5-e091d8c89399","123456")
? loProduto2.InfoRetorno
Always return .null. why?
Give me an example please
I want read into cursor command browse, is this possible?
? loProxy.cErrorMsg
+++ Rick ---
Please Help me!
http://wsintegra.maximaweb.com.br/maximawebservice.svc?wsdl
How i obtain result the method listarproduto?
do wwDotNetBridge
DO maximawebserviceproxy
loProxy = CREATEOBJECT("maximawebserviceProxy","V2")
? loProxy.Init("V2",.T.)
? loProxy.LOadservice("V2")
loProduto2 = loProxy.listarproduto("9d777a6f-5311-4c50-89e5-e091d8c89399","123456")
? loProduto2.InfoRetorno
West Wind Technologies
Making waves on the Web
from Maui
everthing return .null., i was test in SoupUI and return xml ocrrectly utilizinz this method, but
in visual foxprox, i need underting wich class i need to obtain the result.
What's the error message?
? loProxy.cErrorMsg
+++ Rick ---
Please Help me!
http://wsintegra.maximaweb.com.br/maximawebservice.svc?wsdl
How i obtain result the method listarproduto?
do wwDotNetBridge
DO maximawebserviceproxy
loProxy = CREATEOBJECT("maximawebserviceProxy","V2")
? loProxy.Init("V2",.T.)
? loProxy.LOadservice("V2")
loProduto2 = loProxy.listarproduto("9d777a6f-5311-4c50-89e5-e091d8c89399","123456")
? loProduto2.InfoRetorno
No erro message, but i don't kwoy how obtain in cursor ou how obtain se result,
everthing return .null., i was test in SoupUI and return xml ocrrectly utilizinz this method, but
in visual foxprox, i need underting wich class i need to obtain the result.
What's the error message?
? loProxy.cErrorMsg
+++ Rick ---
Please Help me!
http://wsintegra.maximaweb.com.br/maximawebservice.svc?wsdl
How i obtain result the method listarproduto?
do wwDotNetBridge
DO maximawebserviceproxy
loProxy = CREATEOBJECT("maximawebserviceProxy","V2")
? loProxy.Init("V2",.T.)
? loProxy.LOadservice("V2")
loProduto2 = loProxy.listarproduto("9d777a6f-5311-4c50-89e5-e091d8c89399","123456")
? loProduto2.InfoRetorno
If you're getting null, and there's no error then the service is returning a null value to indicate no match maybe. Otherwise cErrorMsg should be set. When in doubt hook up an HTTP proxy like Fiddler and watch the request data going over the wire.
+++ Rick ---
No erro message, but i don't kwoy how obtain in cursor ou how obtain se result,
everthing return .null., i was test in SoupUI and return xml ocrrectly utilizinz this method, but
in visual foxprox, i need underting wich class i need to obtain the result.
What's the error message?
? loProxy.cErrorMsg
+++ Rick ---
Please Help me!
http://wsintegra.maximaweb.com.br/maximawebservice.svc?wsdl
How i obtain result the method listarproduto?
do wwDotNetBridge
DO maximawebserviceproxy
loProxy = CREATEOBJECT("maximawebserviceProxy","V2")
? loProxy.Init("V2",.T.)
? loProxy.LOadservice("V2")
loProduto2 = loProxy.listarproduto("9d777a6f-5311-4c50-89e5-e091d8c89399","123456")
? loProduto2.InfoRetorno
West Wind Technologies
Making waves on the Web
from Maui
do wwDotNetBridge
DO maximawebserviceproxy
loProxy = CREATEOBJECT("maximawebserviceProxy","V2")
loProduto2 = loProxy.listarproduto("9d777a6f-5311-4c50-89e5-e091d8c89399","123456")
? loProduto2.Produtos ---> .NULL.
?loProxy.ceRRORMSG ----. is space
*---------------------------------
With SoapUI is ok, return xml
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:max="http://maximaweb.com.br/service/maximawebservice">
<soapenv:Header/>
<soapenv:Body>
<max:ListarProduto>
<!--Optional:-->
<max:STRTOKEN>9d777a6f-5311-4c50-89e5-e091d8c89399</max:STRTOKEN>
<!--Optional:-->
<max:STRREFERENCIA>123456</max:STRREFERENCIA>
</max:ListarProduto>
</soapenv:Body>
</soapenv:Envelope>
RETURN XML:
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Body>
<ListarProdutoResponse xmlns="http://maximaweb.com.br/service/maximawebservice">
<ListarProdutoResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
<InfoRetorno xmlns="">
<CODIGORETORNO>0</CODIGORETORNO>
<MENSAGEMRETORNO>OK</MENSAGEMRETORNO>
</InfoRetorno>
<Produtos xmlns="">
<Produto>
<INTIDPRODUTO>1</INTIDPRODUTO>
<INTIDFORNECEDOR>1</INTIDFORNECEDOR>
<STRNOME>Produto 01</STRNOME>
<STRREFERENCIA>123456</STRREFERENCIA>
<INTIDMARCA>1</INTIDMARCA>
<INTIDUNIDADEMEDIDA>1</INTIDUNIDADEMEDIDA>
<INTORIGEM>1</INTORIGEM>
<MNYPRECOCUSTO>100.0000</MNYPRECOCUSTO>
<MNYMARGEMDESCONTODE>5.0000</MNYMARGEMDESCONTODE>
<MNYPRECOPOR>95.0000</MNYPRECOPOR>
<STRIMAGEM>sem_imagem.gif</STRIMAGEM>
<STRDESCRICAO i:nil="true"/>
<BITDESTAQUE>false</BITDESTAQUE>
<BITPROMOCAO>false</BITPROMOCAO>
<BITLANCAMENTO>false</BITLANCAMENTO>
<BITFRETEGRATIS>false</BITFRETEGRATIS>
<BITSUBCONSULTA>false</BITSUBCONSULTA>
<BITVENDAEXTRASITE>false</BITVENDAEXTRASITE>
<BITEXCLUSIVIDADE>false</BITEXCLUSIVIDADE>
<DECCOMPRIMENTO>0</DECCOMPRIMENTO>
<DECLARGURA>0</DECLARGURA>
<DECALTURA>0</DECALTURA>
<FLTPESO>1</FLTPESO>
<BITSTATUS>true</BITSTATUS>
<BITCONTROLAESTOQUE>true</BITCONTROLAESTOQUE>
<STRKEYWORDS i:nil="true"/>
<STRDESCRIPTION i:nil="true"/>
<QTDEESTOQUEMINIMO>1</QTDEESTOQUEMINIMO>
<QTDEESTOQUE>10</QTDEESTOQUE>
<STRIP>179.126.76.179</STRIP>
<INTVENDAS>0</INTVENDAS>
<INTIDUSER>1</INTIDUSER>
<BITREDESSOCIAIS>true</BITREDESSOCIAIS>
<BITBNDES>false</BITBNDES>
<FLTQTDEMAXIMAVENDA>10</FLTQTDEMAXIMAVENDA>
<STRCODPRODUTOERP>123456</STRCODPRODUTOERP>
<BITATUALIZAPRECO>true</BITATUALIZAPRECO>
</Produto>
</Produtos>
</ListarProdutoResult>
</ListarProdutoResponse>
</s:Body>
</s:Envelope>
Are you checking the result of cErrorMsg after you call listarProducto...
If you're getting null, and there's no error then the service is returning a null value to indicate no match maybe. Otherwise cErrorMsg should be set. When in doubt hook up an HTTP proxy like Fiddler and watch the request data going over the wire.
+++ Rick ---
No erro message, but i don't kwoy how obtain in cursor ou how obtain se result,
everthing return .null., i was test in SoupUI and return xml ocrrectly utilizinz this method, but
in visual foxprox, i need underting wich class i need to obtain the result.
What's the error message?
? loProxy.cErrorMsg
+++ Rick ---
Please Help me!
http://wsintegra.maximaweb.com.br/maximawebservice.svc?wsdl
How i obtain result the method listarproduto?
do wwDotNetBridge
DO maximawebserviceproxy
loProxy = CREATEOBJECT("maximawebserviceProxy","V2")
? loProxy.Init("V2",.T.)
? loProxy.LOadservice("V2")
loProduto2 = loProxy.listarproduto("9d777a6f-5311-4c50-89e5-e091d8c89399","123456")
? loProduto2.InfoRetorno
You need to look at the actual HTTP traffic to see if the send/receive is working. Use something like Fiddler to capture requests.
+++ Rick ---
In My test return .null.
do wwDotNetBridge
DO maximawebserviceproxy
loProxy = CREATEOBJECT("maximawebserviceProxy","V2")
loProduto2 = loProxy.listarproduto("9d777a6f-5311-4c50-89e5-e091d8c89399","123456")
? loProduto2.Produtos ---> .NULL.
?loProxy.ceRRORMSG ----. is space
*---------------------------------
With SoapUI is ok, return xml
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:max="http://maximaweb.com.br/service/maximawebservice">
<soapenv:Header/>
<soapenv:Body>
<max:ListarProduto>
<!--Optional:-->
<max:STRTOKEN>9d777a6f-5311-4c50-89e5-e091d8c89399</max:STRTOKEN>
<!--Optional:-->
<max:STRREFERENCIA>123456</max:STRREFERENCIA>
</max:ListarProduto>
</soapenv:Body>
</soapenv:Envelope>
RETURN XML:
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Body>
<ListarProdutoResponse xmlns="http://maximaweb.com.br/service/maximawebservice">
<ListarProdutoResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
<InfoRetorno xmlns="">
<CODIGORETORNO>0</CODIGORETORNO>
<MENSAGEMRETORNO>OK</MENSAGEMRETORNO>
</InfoRetorno>
<Produtos xmlns="">
<Produto>
<INTIDPRODUTO>1</INTIDPRODUTO>
<INTIDFORNECEDOR>1</INTIDFORNECEDOR>
<STRNOME>Produto 01</STRNOME>
<STRREFERENCIA>123456</STRREFERENCIA>
<INTIDMARCA>1</INTIDMARCA>
<INTIDUNIDADEMEDIDA>1</INTIDUNIDADEMEDIDA>
<INTORIGEM>1</INTORIGEM>
<MNYPRECOCUSTO>100.0000</MNYPRECOCUSTO>
<MNYMARGEMDESCONTODE>5.0000</MNYMARGEMDESCONTODE>
<MNYPRECOPOR>95.0000</MNYPRECOPOR>
<STRIMAGEM>sem_imagem.gif</STRIMAGEM>
<STRDESCRICAO i:nil="true"/>
<BITDESTAQUE>false</BITDESTAQUE>
<BITPROMOCAO>false</BITPROMOCAO>
<BITLANCAMENTO>false</BITLANCAMENTO>
<BITFRETEGRATIS>false</BITFRETEGRATIS>
<BITSUBCONSULTA>false</BITSUBCONSULTA>
<BITVENDAEXTRASITE>false</BITVENDAEXTRASITE>
<BITEXCLUSIVIDADE>false</BITEXCLUSIVIDADE>
<DECCOMPRIMENTO>0</DECCOMPRIMENTO>
<DECLARGURA>0</DECLARGURA>
<DECALTURA>0</DECALTURA>
<FLTPESO>1</FLTPESO>
<BITSTATUS>true</BITSTATUS>
<BITCONTROLAESTOQUE>true</BITCONTROLAESTOQUE>
<STRKEYWORDS i:nil="true"/>
<STRDESCRIPTION i:nil="true"/>
<QTDEESTOQUEMINIMO>1</QTDEESTOQUEMINIMO>
<QTDEESTOQUE>10</QTDEESTOQUE>
<STRIP>179.126.76.179</STRIP>
<INTVENDAS>0</INTVENDAS>
<INTIDUSER>1</INTIDUSER>
<BITREDESSOCIAIS>true</BITREDESSOCIAIS>
<BITBNDES>false</BITBNDES>
<FLTQTDEMAXIMAVENDA>10</FLTQTDEMAXIMAVENDA>
<STRCODPRODUTOERP>123456</STRCODPRODUTOERP>
<BITATUALIZAPRECO>true</BITATUALIZAPRECO>
</Produto>
</Produtos>
</ListarProdutoResult>
</ListarProdutoResponse>
</s:Body>
</s:Envelope>
Are you checking the result of cErrorMsg after you call listarProducto...
If you're getting null, and there's no error then the service is returning a null value to indicate no match maybe. Otherwise cErrorMsg should be set. When in doubt hook up an HTTP proxy like Fiddler and watch the request data going over the wire.
+++ Rick ---
No erro message, but i don't kwoy how obtain in cursor ou how obtain se result,
everthing return .null., i was test in SoupUI and return xml ocrrectly utilizinz this method, but
in visual foxprox, i need underting wich class i need to obtain the result.
What's the error message?
? loProxy.cErrorMsg
+++ Rick ---
Please Help me!
http://wsintegra.maximaweb.com.br/maximawebservice.svc?wsdl
How i obtain result the method listarproduto?
do wwDotNetBridge
DO maximawebserviceproxy
loProxy = CREATEOBJECT("maximawebserviceProxy","V2")
? loProxy.Init("V2",.T.)
? loProxy.LOadservice("V2")
loProduto2 = loProxy.listarproduto("9d777a6f-5311-4c50-89e5-e091d8c89399","123456")
? loProduto2.InfoRetorno
West Wind Technologies
Making waves on the Web
from Maui
But i don't know how obtain return in cusor (browse) this result
Can i use ? loproxy.OBRIDGE.xmlstringtodataset ??
which the next step or method to get response..
My test in Fiddler:
Utilizing method ListarProduto:
<?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><soap:Body><ListarProduto xmlns="http://maximaweb.com.br/service/maximawebservice"><STRTOKEN>9d777a6f-5311-4c50-89e5-e091d8c89399</STRTOKEN><STRREFERENCIA>123456</STRREFERENCIA></ListarProduto></soap:Body></soap:Envelope>
Result return:
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"><s:Body><ListarProdutoResponse xmlns="http://maximaweb.com.br/service/maximawebservice"><ListarProdutoResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance"><InfoRetorno xmlns=""><CODIGORETORNO>0</CODIGORETORNO><MENSAGEMRETORNO>OK</MENSAGEMRETORNO></InfoRetorno><Produtos xmlns=""><Produto><INTIDPRODUTO>1</INTIDPRODUTO><INTIDFORNECEDOR>1</INTIDFORNECEDOR><STRNOME>Produto 01</STRNOME><STRREFERENCIA>123456</STRREFERENCIA><INTIDMARCA>1</INTIDMARCA><INTIDUNIDADEMEDIDA>1</INTIDUNIDADEMEDIDA><INTORIGEM>1</INTORIGEM><MNYPRECOCUSTO>100.0000</MNYPRECOCUSTO><MNYMARGEMDESCONTODE>5.0000</MNYMARGEMDESCONTODE><MNYPRECOPOR>95.0000</MNYPRECOPOR><STRIMAGEM>sem_imagem.gif</STRIMAGEM><STRDESCRICAO i:nil="true"/><BITDESTAQUE>false</BITDESTAQUE><BITPROMOCAO>false</BITPROMOCAO><BITLANCAMENTO>false</BITLANCAMENTO><BITFRETEGRATIS>false</BITFRETEGRATIS><BITSUBCONSULTA>false</BITSUBCONSULTA><BITVENDAEXTRASITE>false</BITVENDAEXTRASITE><BITEXCLUSIVIDADE>false</BITEXCLUSIVIDADE><DECCOMPRIMENTO>0</DECCOMPRIMENTO><DECLARGURA>0</DECLARGURA><DECALTURA>0</DECALTURA><FLTPESO>1</FLTPESO><BITSTATUS>true</BITSTATUS><BITCONTROLAESTOQUE>true</BITCONTROLAESTOQUE><STRKEYWORDS i:nil="true"/><STRDESCRIPTION i:nil="true"/><QTDEESTOQUEMINIMO>1</QTDEESTOQUEMINIMO><QTDEESTOQUE>10</QTDEESTOQUE><STRIP>179.126.76.179</STRIP><INTVENDAS>0</INTVENDAS><INTIDUSER>1</INTIDUSER><BITREDESSOCIAIS>true</BITREDESSOCIAIS><BITBNDES>false</BITBNDES><FLTQTDEMAXIMAVENDA>10</FLTQTDEMAXIMAVENDA><STRCODPRODUTOERP>123456</STRCODPRODUTOERP><BITATUALIZAPRECO>true</BITATUALIZAPRECO></Produto></Produtos></ListarProdutoResult></ListarProdutoResponse></s:Body></s:Envelope>
Well, then your service is likely returning null. if there are no errors then the proxy is sending and receiving messages.
You need to look at the actual HTTP traffic to see if the send/receive is working. Use something like Fiddler to capture requests.
+++ Rick ---
In My test return .null.
do wwDotNetBridge
DO maximawebserviceproxy
loProxy = CREATEOBJECT("maximawebserviceProxy","V2")
loProduto2 = loProxy.listarproduto("9d777a6f-5311-4c50-89e5-e091d8c89399","123456")
? loProduto2.Produtos ---> .NULL.
?loProxy.ceRRORMSG ----. is space
*---------------------------------
With SoapUI is ok, return xml
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:max="http://maximaweb.com.br/service/maximawebservice">
<soapenv:Header/>
<soapenv:Body>
<max:ListarProduto>
<!--Optional:-->
<max:STRTOKEN>9d777a6f-5311-4c50-89e5-e091d8c89399</max:STRTOKEN>
<!--Optional:-->
<max:STRREFERENCIA>123456</max:STRREFERENCIA>
</max:ListarProduto>
</soapenv:Body>
</soapenv:Envelope>
RETURN XML:
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Body>
<ListarProdutoResponse xmlns="http://maximaweb.com.br/service/maximawebservice">
<ListarProdutoResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
<InfoRetorno xmlns="">
<CODIGORETORNO>0</CODIGORETORNO>
<MENSAGEMRETORNO>OK</MENSAGEMRETORNO>
</InfoRetorno>
<Produtos xmlns="">
<Produto>
<INTIDPRODUTO>1</INTIDPRODUTO>
<INTIDFORNECEDOR>1</INTIDFORNECEDOR>
<STRNOME>Produto 01</STRNOME>
<STRREFERENCIA>123456</STRREFERENCIA>
<INTIDMARCA>1</INTIDMARCA>
<INTIDUNIDADEMEDIDA>1</INTIDUNIDADEMEDIDA>
<INTORIGEM>1</INTORIGEM>
<MNYPRECOCUSTO>100.0000</MNYPRECOCUSTO>
<MNYMARGEMDESCONTODE>5.0000</MNYMARGEMDESCONTODE>
<MNYPRECOPOR>95.0000</MNYPRECOPOR>
<STRIMAGEM>sem_imagem.gif</STRIMAGEM>
<STRDESCRICAO i:nil="true"/>
<BITDESTAQUE>false</BITDESTAQUE>
<BITPROMOCAO>false</BITPROMOCAO>
<BITLANCAMENTO>false</BITLANCAMENTO>
<BITFRETEGRATIS>false</BITFRETEGRATIS>
<BITSUBCONSULTA>false</BITSUBCONSULTA>
<BITVENDAEXTRASITE>false</BITVENDAEXTRASITE>
<BITEXCLUSIVIDADE>false</BITEXCLUSIVIDADE>
<DECCOMPRIMENTO>0</DECCOMPRIMENTO>
<DECLARGURA>0</DECLARGURA>
<DECALTURA>0</DECALTURA>
<FLTPESO>1</FLTPESO>
<BITSTATUS>true</BITSTATUS>
<BITCONTROLAESTOQUE>true</BITCONTROLAESTOQUE>
<STRKEYWORDS i:nil="true"/>
<STRDESCRIPTION i:nil="true"/>
<QTDEESTOQUEMINIMO>1</QTDEESTOQUEMINIMO>
<QTDEESTOQUE>10</QTDEESTOQUE>
<STRIP>179.126.76.179</STRIP>
<INTVENDAS>0</INTVENDAS>
<INTIDUSER>1</INTIDUSER>
<BITREDESSOCIAIS>true</BITREDESSOCIAIS>
<BITBNDES>false</BITBNDES>
<FLTQTDEMAXIMAVENDA>10</FLTQTDEMAXIMAVENDA>
<STRCODPRODUTOERP>123456</STRCODPRODUTOERP>
<BITATUALIZAPRECO>true</BITATUALIZAPRECO>
</Produto>
</Produtos>
</ListarProdutoResult>
</ListarProdutoResponse>
</s:Body>
</s:Envelope>
Are you checking the result of cErrorMsg after you call listarProducto...
If you're getting null, and there's no error then the service is returning a null value to indicate no match maybe. Otherwise cErrorMsg should be set. When in doubt hook up an HTTP proxy like Fiddler and watch the request data going over the wire.
+++ Rick ---
No erro message, but i don't kwoy how obtain in cursor ou how obtain se result,
everthing return .null., i was test in SoupUI and return xml ocrrectly utilizinz this method, but
in visual foxprox, i need underting wich class i need to obtain the result.
What's the error message?
? loProxy.cErrorMsg
+++ Rick ---
Please Help me!
http://wsintegra.maximaweb.com.br/maximawebservice.svc?wsdl
How i obtain result the method listarproduto?
do wwDotNetBridge
DO maximawebserviceproxy
loProxy = CREATEOBJECT("maximawebserviceProxy","V2")
? loProxy.Init("V2",.T.)
? loProxy.LOadservice("V2")
loProduto2 = loProxy.listarproduto("9d777a6f-5311-4c50-89e5-e091d8c89399","123456")
? loProduto2.InfoRetorno
You need to access the object structures properly. Please take a look at the wwDotnetBridge docs to see how to access child objects and child arrays.
+++ Rick ---
I Checked with Fiddler, it's ok.
But i don't know how obtain return in cusor (browse) this result
Can i use ? loproxy.OBRIDGE.xmlstringtodataset ??
which the next step or method to get response..
My test in Fiddler:
Utilizing method ListarProduto:
<?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><soap:Body><ListarProduto xmlns="http://maximaweb.com.br/service/maximawebservice"><STRTOKEN>9d777a6f-5311-4c50-89e5-e091d8c89399</STRTOKEN><STRREFERENCIA>123456</STRREFERENCIA></ListarProduto></soap:Body></soap:Envelope>
Result return:
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"><s:Body><ListarProdutoResponse xmlns="http://maximaweb.com.br/service/maximawebservice"><ListarProdutoResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance"><InfoRetorno xmlns=""><CODIGORETORNO>0</CODIGORETORNO><MENSAGEMRETORNO>OK</MENSAGEMRETORNO></InfoRetorno><Produtos xmlns=""><Produto><INTIDPRODUTO>1</INTIDPRODUTO><INTIDFORNECEDOR>1</INTIDFORNECEDOR><STRNOME>Produto 01</STRNOME><STRREFERENCIA>123456</STRREFERENCIA><INTIDMARCA>1</INTIDMARCA><INTIDUNIDADEMEDIDA>1</INTIDUNIDADEMEDIDA><INTORIGEM>1</INTORIGEM><MNYPRECOCUSTO>100.0000</MNYPRECOCUSTO><MNYMARGEMDESCONTODE>5.0000</MNYMARGEMDESCONTODE><MNYPRECOPOR>95.0000</MNYPRECOPOR><STRIMAGEM>sem_imagem.gif</STRIMAGEM><STRDESCRICAO i:nil="true"/><BITDESTAQUE>false</BITDESTAQUE><BITPROMOCAO>false</BITPROMOCAO><BITLANCAMENTO>false</BITLANCAMENTO><BITFRETEGRATIS>false</BITFRETEGRATIS><BITSUBCONSULTA>false</BITSUBCONSULTA><BITVENDAEXTRASITE>false</BITVENDAEXTRASITE><BITEXCLUSIVIDADE>false</BITEXCLUSIVIDADE><DECCOMPRIMENTO>0</DECCOMPRIMENTO><DECLARGURA>0</DECLARGURA><DECALTURA>0</DECALTURA><FLTPESO>1</FLTPESO><BITSTATUS>true</BITSTATUS><BITCONTROLAESTOQUE>true</BITCONTROLAESTOQUE><STRKEYWORDS i:nil="true"/><STRDESCRIPTION i:nil="true"/><QTDEESTOQUEMINIMO>1</QTDEESTOQUEMINIMO><QTDEESTOQUE>10</QTDEESTOQUE><STRIP>179.126.76.179</STRIP><INTVENDAS>0</INTVENDAS><INTIDUSER>1</INTIDUSER><BITREDESSOCIAIS>true</BITREDESSOCIAIS><BITBNDES>false</BITBNDES><FLTQTDEMAXIMAVENDA>10</FLTQTDEMAXIMAVENDA><STRCODPRODUTOERP>123456</STRCODPRODUTOERP><BITATUALIZAPRECO>true</BITATUALIZAPRECO></Produto></Produtos></ListarProdutoResult></ListarProdutoResponse></s:Body></s:Envelope>
Well, then your service is likely returning null. if there are no errors then the proxy is sending and receiving messages.
You need to look at the actual HTTP traffic to see if the send/receive is working. Use something like Fiddler to capture requests.
+++ Rick ---
In My test return .null.
do wwDotNetBridge
DO maximawebserviceproxy
loProxy = CREATEOBJECT("maximawebserviceProxy","V2")
loProduto2 = loProxy.listarproduto("9d777a6f-5311-4c50-89e5-e091d8c89399","123456")
? loProduto2.Produtos ---> .NULL.
?loProxy.ceRRORMSG ----. is space
*---------------------------------
With SoapUI is ok, return xml
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:max="http://maximaweb.com.br/service/maximawebservice">
<soapenv:Header/>
<soapenv:Body>
<max:ListarProduto>
<!--Optional:-->
<max:STRTOKEN>9d777a6f-5311-4c50-89e5-e091d8c89399</max:STRTOKEN>
<!--Optional:-->
<max:STRREFERENCIA>123456</max:STRREFERENCIA>
</max:ListarProduto>
</soapenv:Body>
</soapenv:Envelope>
RETURN XML:
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Body>
<ListarProdutoResponse xmlns="http://maximaweb.com.br/service/maximawebservice">
<ListarProdutoResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
<InfoRetorno xmlns="">
<CODIGORETORNO>0</CODIGORETORNO>
<MENSAGEMRETORNO>OK</MENSAGEMRETORNO>
</InfoRetorno>
<Produtos xmlns="">
<Produto>
<INTIDPRODUTO>1</INTIDPRODUTO>
<INTIDFORNECEDOR>1</INTIDFORNECEDOR>
<STRNOME>Produto 01</STRNOME>
<STRREFERENCIA>123456</STRREFERENCIA>
<INTIDMARCA>1</INTIDMARCA>
<INTIDUNIDADEMEDIDA>1</INTIDUNIDADEMEDIDA>
<INTORIGEM>1</INTORIGEM>
<MNYPRECOCUSTO>100.0000</MNYPRECOCUSTO>
<MNYMARGEMDESCONTODE>5.0000</MNYMARGEMDESCONTODE>
<MNYPRECOPOR>95.0000</MNYPRECOPOR>
<STRIMAGEM>sem_imagem.gif</STRIMAGEM>
<STRDESCRICAO i:nil="true"/>
<BITDESTAQUE>false</BITDESTAQUE>
<BITPROMOCAO>false</BITPROMOCAO>
<BITLANCAMENTO>false</BITLANCAMENTO>
<BITFRETEGRATIS>false</BITFRETEGRATIS>
<BITSUBCONSULTA>false</BITSUBCONSULTA>
<BITVENDAEXTRASITE>false</BITVENDAEXTRASITE>
<BITEXCLUSIVIDADE>false</BITEXCLUSIVIDADE>
<DECCOMPRIMENTO>0</DECCOMPRIMENTO>
<DECLARGURA>0</DECLARGURA>
<DECALTURA>0</DECALTURA>
<FLTPESO>1</FLTPESO>
<BITSTATUS>true</BITSTATUS>
<BITCONTROLAESTOQUE>true</BITCONTROLAESTOQUE>
<STRKEYWORDS i:nil="true"/>
<STRDESCRIPTION i:nil="true"/>
<QTDEESTOQUEMINIMO>1</QTDEESTOQUEMINIMO>
<QTDEESTOQUE>10</QTDEESTOQUE>
<STRIP>179.126.76.179</STRIP>
<INTVENDAS>0</INTVENDAS>
<INTIDUSER>1</INTIDUSER>
<BITREDESSOCIAIS>true</BITREDESSOCIAIS>
<BITBNDES>false</BITBNDES>
<FLTQTDEMAXIMAVENDA>10</FLTQTDEMAXIMAVENDA>
<STRCODPRODUTOERP>123456</STRCODPRODUTOERP>
<BITATUALIZAPRECO>true</BITATUALIZAPRECO>
</Produto>
</Produtos>
</ListarProdutoResult>
</ListarProdutoResponse>
</s:Body>
</s:Envelope>
Are you checking the result of cErrorMsg after you call listarProducto...
If you're getting null, and there's no error then the service is returning a null value to indicate no match maybe. Otherwise cErrorMsg should be set. When in doubt hook up an HTTP proxy like Fiddler and watch the request data going over the wire.
+++ Rick ---
No erro message, but i don't kwoy how obtain in cursor ou how obtain se result,
everthing return .null., i was test in SoupUI and return xml ocrrectly utilizinz this method, but
in visual foxprox, i need underting wich class i need to obtain the result.
What's the error message?
? loProxy.cErrorMsg
+++ Rick ---
Please Help me!
http://wsintegra.maximaweb.com.br/maximawebservice.svc?wsdl
How i obtain result the method listarproduto?
do wwDotNetBridge
DO maximawebserviceproxy
loProxy = CREATEOBJECT("maximawebserviceProxy","V2")
? loProxy.Init("V2",.T.)
? loProxy.LOadservice("V2")
loProduto2 = loProxy.listarproduto("9d777a6f-5311-4c50-89e5-e091d8c89399","123456")
? loProduto2.InfoRetorno
West Wind Technologies
Making waves on the Web
from Maui
This is what your result looks like:
<?xml version="1.0" encoding="utf-8"?>
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Body>
<ListarProdutoResponse xmlns="http://maximaweb.com.br/service/maximawebservice">
<ListarProdutoResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
<InfoRetorno xmlns="">
<CODIGORETORNO>0</CODIGORETORNO>
<MENSAGEMRETORNO>OK</MENSAGEMRETORNO>
</InfoRetorno>
<Produtos xmlns="">
<Produto>
<INTIDPRODUTO>1</INTIDPRODUTO>
<INTIDFORNECEDOR>1</INTIDFORNECEDOR>
<STRNOME>Produto 01</STRNOME>
<STRREFERENCIA>123456</STRREFERENCIA>
<INTIDMARCA>1</INTIDMARCA>
<INTIDUNIDADEMEDIDA>1</INTIDUNIDADEMEDIDA>
<INTORIGEM>1</INTORIGEM>
<MNYPRECOCUSTO>100.0000</MNYPRECOCUSTO>
<MNYMARGEMDESCONTODE>5.0000</MNYMARGEMDESCONTODE>
<MNYPRECOPOR>95.0000</MNYPRECOPOR>
<STRIMAGEM>sem_imagem.gif</STRIMAGEM>
<STRDESCRICAO i:nil="true"/>
<BITDESTAQUE>false</BITDESTAQUE>
<BITPROMOCAO>false</BITPROMOCAO>
<BITLANCAMENTO>false</BITLANCAMENTO>
<BITFRETEGRATIS>false</BITFRETEGRATIS>
<BITSUBCONSULTA>false</BITSUBCONSULTA>
<BITVENDAEXTRASITE>false</BITVENDAEXTRASITE>
<BITEXCLUSIVIDADE>false</BITEXCLUSIVIDADE>
<DECCOMPRIMENTO>0</DECCOMPRIMENTO>
<DECLARGURA>0</DECLARGURA>
<DECALTURA>0</DECALTURA>
<FLTPESO>1</FLTPESO>
<BITSTATUS>true</BITSTATUS>
<BITCONTROLAESTOQUE>true</BITCONTROLAESTOQUE>
<STRKEYWORDS i:nil="true"/>
<STRDESCRIPTION i:nil="true"/>
<QTDEESTOQUEMINIMO>1</QTDEESTOQUEMINIMO>
<QTDEESTOQUE>10</QTDEESTOQUE>
<STRIP>179.126.76.179</STRIP>
<INTVENDAS>0</INTVENDAS>
<INTIDUSER>1</INTIDUSER>
<BITREDESSOCIAIS>true</BITREDESSOCIAIS>
<BITBNDES>false</BITBNDES>
<FLTQTDEMAXIMAVENDA>10</FLTQTDEMAXIMAVENDA>
<STRCODPRODUTOERP>123456</STRCODPRODUTOERP>
<BITATUALIZAPRECO>true</BITATUALIZAPRECO>
</Produto>
</Produtos>
</ListarProdutoResult>
</ListarProdutoResponse>
</s:Body>
</s:Envelope>
So you have an array of Productos:
loResponse = && Web Service Call Result
? loResponse.InfoRetorno.MENSAGEMRETORNOloProducts = loBridge.GetProperty(loResponse,"Productos")
? loProducts.Count
FOR lnX = 0 to loProducts.Count-1
loProduct = loProducts.Item(lnX)
? loProduct.StrNome
ENDFOR
+++ Rick ---
I Checked with Fiddler, it's ok.
But i don't know how obtain return in cusor (browse) this result
Can i use ? loproxy.OBRIDGE.xmlstringtodataset ??
which the next step or method to get response..
My test in Fiddler:
Utilizing method ListarProduto:
<?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><soap:Body><ListarProduto xmlns="http://maximaweb.com.br/service/maximawebservice"><STRTOKEN>9d777a6f-5311-4c50-89e5-e091d8c89399</STRTOKEN><STRREFERENCIA>123456</STRREFERENCIA></ListarProduto></soap:Body></soap:Envelope>
Result return:
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"><s:Body><ListarProdutoResponse xmlns="http://maximaweb.com.br/service/maximawebservice"><ListarProdutoResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance"><InfoRetorno xmlns=""><CODIGORETORNO>0</CODIGORETORNO><MENSAGEMRETORNO>OK</MENSAGEMRETORNO></InfoRetorno><Produtos xmlns=""><Produto><INTIDPRODUTO>1</INTIDPRODUTO><INTIDFORNECEDOR>1</INTIDFORNECEDOR><STRNOME>Produto 01</STRNOME><STRREFERENCIA>123456</STRREFERENCIA><INTIDMARCA>1</INTIDMARCA><INTIDUNIDADEMEDIDA>1</INTIDUNIDADEMEDIDA><INTORIGEM>1</INTORIGEM><MNYPRECOCUSTO>100.0000</MNYPRECOCUSTO><MNYMARGEMDESCONTODE>5.0000</MNYMARGEMDESCONTODE><MNYPRECOPOR>95.0000</MNYPRECOPOR><STRIMAGEM>sem_imagem.gif</STRIMAGEM><STRDESCRICAO i:nil="true"/><BITDESTAQUE>false</BITDESTAQUE><BITPROMOCAO>false</BITPROMOCAO><BITLANCAMENTO>false</BITLANCAMENTO><BITFRETEGRATIS>false</BITFRETEGRATIS><BITSUBCONSULTA>false</BITSUBCONSULTA><BITVENDAEXTRASITE>false</BITVENDAEXTRASITE><BITEXCLUSIVIDADE>false</BITEXCLUSIVIDADE><DECCOMPRIMENTO>0</DECCOMPRIMENTO><DECLARGURA>0</DECLARGURA><DECALTURA>0</DECALTURA><FLTPESO>1</FLTPESO><BITSTATUS>true</BITSTATUS><BITCONTROLAESTOQUE>true</BITCONTROLAESTOQUE><STRKEYWORDS i:nil="true"/><STRDESCRIPTION i:nil="true"/><QTDEESTOQUEMINIMO>1</QTDEESTOQUEMINIMO><QTDEESTOQUE>10</QTDEESTOQUE><STRIP>179.126.76.179</STRIP><INTVENDAS>0</INTVENDAS><INTIDUSER>1</INTIDUSER><BITREDESSOCIAIS>true</BITREDESSOCIAIS><BITBNDES>false</BITBNDES><FLTQTDEMAXIMAVENDA>10</FLTQTDEMAXIMAVENDA><STRCODPRODUTOERP>123456</STRCODPRODUTOERP><BITATUALIZAPRECO>true</BITATUALIZAPRECO></Produto></Produtos></ListarProdutoResult></ListarProdutoResponse></s:Body></s:Envelope>
Well, then your service is likely returning null. if there are no errors then the proxy is sending and receiving messages.
You need to look at the actual HTTP traffic to see if the send/receive is working. Use something like Fiddler to capture requests.
+++ Rick ---
In My test return .null.
do wwDotNetBridge
DO maximawebserviceproxy
loProxy = CREATEOBJECT("maximawebserviceProxy","V2")
loProduto2 = loProxy.listarproduto("9d777a6f-5311-4c50-89e5-e091d8c89399","123456")
? loProduto2.Produtos ---> .NULL.
?loProxy.ceRRORMSG ----. is space
*---------------------------------
With SoapUI is ok, return xml
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:max="http://maximaweb.com.br/service/maximawebservice">
<soapenv:Header/>
<soapenv:Body>
<max:ListarProduto>
<!--Optional:-->
<max:STRTOKEN>9d777a6f-5311-4c50-89e5-e091d8c89399</max:STRTOKEN>
<!--Optional:-->
<max:STRREFERENCIA>123456</max:STRREFERENCIA>
</max:ListarProduto>
</soapenv:Body>
</soapenv:Envelope>
RETURN XML:
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Body>
<ListarProdutoResponse xmlns="http://maximaweb.com.br/service/maximawebservice">
<ListarProdutoResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
<InfoRetorno xmlns="">
<CODIGORETORNO>0</CODIGORETORNO>
<MENSAGEMRETORNO>OK</MENSAGEMRETORNO>
</InfoRetorno>
<Produtos xmlns="">
<Produto>
<INTIDPRODUTO>1</INTIDPRODUTO>
<INTIDFORNECEDOR>1</INTIDFORNECEDOR>
<STRNOME>Produto 01</STRNOME>
<STRREFERENCIA>123456</STRREFERENCIA>
<INTIDMARCA>1</INTIDMARCA>
<INTIDUNIDADEMEDIDA>1</INTIDUNIDADEMEDIDA>
<INTORIGEM>1</INTORIGEM>
<MNYPRECOCUSTO>100.0000</MNYPRECOCUSTO>
<MNYMARGEMDESCONTODE>5.0000</MNYMARGEMDESCONTODE>
<MNYPRECOPOR>95.0000</MNYPRECOPOR>
<STRIMAGEM>sem_imagem.gif</STRIMAGEM>
<STRDESCRICAO i:nil="true"/>
<BITDESTAQUE>false</BITDESTAQUE>
<BITPROMOCAO>false</BITPROMOCAO>
<BITLANCAMENTO>false</BITLANCAMENTO>
<BITFRETEGRATIS>false</BITFRETEGRATIS>
<BITSUBCONSULTA>false</BITSUBCONSULTA>
<BITVENDAEXTRASITE>false</BITVENDAEXTRASITE>
<BITEXCLUSIVIDADE>false</BITEXCLUSIVIDADE>
<DECCOMPRIMENTO>0</DECCOMPRIMENTO>
<DECLARGURA>0</DECLARGURA>
<DECALTURA>0</DECALTURA>
<FLTPESO>1</FLTPESO>
<BITSTATUS>true</BITSTATUS>
<BITCONTROLAESTOQUE>true</BITCONTROLAESTOQUE>
<STRKEYWORDS i:nil="true"/>
<STRDESCRIPTION i:nil="true"/>
<QTDEESTOQUEMINIMO>1</QTDEESTOQUEMINIMO>
<QTDEESTOQUE>10</QTDEESTOQUE>
<STRIP>179.126.76.179</STRIP>
<INTVENDAS>0</INTVENDAS>
<INTIDUSER>1</INTIDUSER>
<BITREDESSOCIAIS>true</BITREDESSOCIAIS>
<BITBNDES>false</BITBNDES>
<FLTQTDEMAXIMAVENDA>10</FLTQTDEMAXIMAVENDA>
<STRCODPRODUTOERP>123456</STRCODPRODUTOERP>
<BITATUALIZAPRECO>true</BITATUALIZAPRECO>
</Produto>
</Produtos>
</ListarProdutoResult>
</ListarProdutoResponse>
</s:Body>
</s:Envelope>
Are you checking the result of cErrorMsg after you call listarProducto...
If you're getting null, and there's no error then the service is returning a null value to indicate no match maybe. Otherwise cErrorMsg should be set. When in doubt hook up an HTTP proxy like Fiddler and watch the request data going over the wire.
+++ Rick ---
No erro message, but i don't kwoy how obtain in cursor ou how obtain se result,
everthing return .null., i was test in SoupUI and return xml ocrrectly utilizinz this method, but
in visual foxprox, i need underting wich class i need to obtain the result.
What's the error message?
? loProxy.cErrorMsg
+++ Rick ---
Please Help me!
http://wsintegra.maximaweb.com.br/maximawebservice.svc?wsdl
How i obtain result the method listarproduto?
do wwDotNetBridge
DO maximawebserviceproxy
loProxy = CREATEOBJECT("maximawebserviceProxy","V2")
? loProxy.Init("V2",.T.)
? loProxy.LOadservice("V2")
loProduto2 = loProxy.listarproduto("9d777a6f-5311-4c50-89e5-e091d8c89399","123456")
? loProduto2.InfoRetorno
West Wind Technologies
Making waves on the Web
from Maui
But, I tried for their guidance but always (? loResponse.InfoRetorno) returns null and I can not make progress.
I wonder what might be happening, would test there?
Maria.
*------------------------------------------------------------------------------
This is what your result looks like:
<?xml version="1.0" encoding="utf-8"?>
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Body>
<ListarProdutoResponse xmlns="http://maximaweb.com.br/service/maximawebservice">
<ListarProdutoResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
<InfoRetorno xmlns="">
<CODIGORETORNO>0</CODIGORETORNO>
<MENSAGEMRETORNO>OK</MENSAGEMRETORNO>
</InfoRetorno>
<Produtos xmlns="">
<Produto>
<INTIDPRODUTO>1</INTIDPRODUTO>
<INTIDFORNECEDOR>1</INTIDFORNECEDOR>
<STRNOME>Produto 01</STRNOME>
<STRREFERENCIA>123456</STRREFERENCIA>
<INTIDMARCA>1</INTIDMARCA>
<INTIDUNIDADEMEDIDA>1</INTIDUNIDADEMEDIDA>
<INTORIGEM>1</INTORIGEM>
<MNYPRECOCUSTO>100.0000</MNYPRECOCUSTO>
<MNYMARGEMDESCONTODE>5.0000</MNYMARGEMDESCONTODE>
<MNYPRECOPOR>95.0000</MNYPRECOPOR>
<STRIMAGEM>sem_imagem.gif</STRIMAGEM>
<STRDESCRICAO i:nil="true"/>
<BITDESTAQUE>false</BITDESTAQUE>
<BITPROMOCAO>false</BITPROMOCAO>
<BITLANCAMENTO>false</BITLANCAMENTO>
<BITFRETEGRATIS>false</BITFRETEGRATIS>
<BITSUBCONSULTA>false</BITSUBCONSULTA>
<BITVENDAEXTRASITE>false</BITVENDAEXTRASITE>
<BITEXCLUSIVIDADE>false</BITEXCLUSIVIDADE>
<DECCOMPRIMENTO>0</DECCOMPRIMENTO>
<DECLARGURA>0</DECLARGURA>
<DECALTURA>0</DECALTURA>
<FLTPESO>1</FLTPESO>
<BITSTATUS>true</BITSTATUS>
<BITCONTROLAESTOQUE>true</BITCONTROLAESTOQUE>
<STRKEYWORDS i:nil="true"/>
<STRDESCRIPTION i:nil="true"/>
<QTDEESTOQUEMINIMO>1</QTDEESTOQUEMINIMO>
<QTDEESTOQUE>10</QTDEESTOQUE>
<STRIP>179.126.76.179</STRIP>
<INTVENDAS>0</INTVENDAS>
<INTIDUSER>1</INTIDUSER>
<BITREDESSOCIAIS>true</BITREDESSOCIAIS>
<BITBNDES>false</BITBNDES>
<FLTQTDEMAXIMAVENDA>10</FLTQTDEMAXIMAVENDA>
<STRCODPRODUTOERP>123456</STRCODPRODUTOERP>
<BITATUALIZAPRECO>true</BITATUALIZAPRECO>
</Produto>
</Produtos>
</ListarProdutoResult>
</ListarProdutoResponse>
</s:Body>
</s:Envelope>
So you have an array of Productos:
loResponse = && Web Service Call Result
? loResponse.InfoRetorno.MENSAGEMRETORNOloProducts = loBridge.GetProperty(loResponse,"Productos")
? loProducts.Count
FOR lnX = 0 to loProducts.Count-1
loProduct = loProducts.Item(lnX)
? loProduct.StrNome
ENDFOR
+++ Rick ---
I Checked with Fiddler, it's ok.
But i don't know how obtain return in cusor (browse) this result
Can i use ? loproxy.OBRIDGE.xmlstringtodataset ??
which the next step or method to get response..
My test in Fiddler:
Utilizing method ListarProduto:
<?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><soap:Body><ListarProduto xmlns="http://maximaweb.com.br/service/maximawebservice"><STRTOKEN>9d777a6f-5311-4c50-89e5-e091d8c89399</STRTOKEN><STRREFERENCIA>123456</STRREFERENCIA></ListarProduto></soap:Body></soap:Envelope>
Result return:
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"><s:Body><ListarProdutoResponse xmlns="http://maximaweb.com.br/service/maximawebservice"><ListarProdutoResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance"><InfoRetorno xmlns=""><CODIGORETORNO>0</CODIGORETORNO><MENSAGEMRETORNO>OK</MENSAGEMRETORNO></InfoRetorno><Produtos xmlns=""><Produto><INTIDPRODUTO>1</INTIDPRODUTO><INTIDFORNECEDOR>1</INTIDFORNECEDOR><STRNOME>Produto 01</STRNOME><STRREFERENCIA>123456</STRREFERENCIA><INTIDMARCA>1</INTIDMARCA><INTIDUNIDADEMEDIDA>1</INTIDUNIDADEMEDIDA><INTORIGEM>1</INTORIGEM><MNYPRECOCUSTO>100.0000</MNYPRECOCUSTO><MNYMARGEMDESCONTODE>5.0000</MNYMARGEMDESCONTODE><MNYPRECOPOR>95.0000</MNYPRECOPOR><STRIMAGEM>sem_imagem.gif</STRIMAGEM><STRDESCRICAO i:nil="true"/><BITDESTAQUE>false</BITDESTAQUE><BITPROMOCAO>false</BITPROMOCAO><BITLANCAMENTO>false</BITLANCAMENTO><BITFRETEGRATIS>false</BITFRETEGRATIS><BITSUBCONSULTA>false</BITSUBCONSULTA><BITVENDAEXTRASITE>false</BITVENDAEXTRASITE><BITEXCLUSIVIDADE>false</BITEXCLUSIVIDADE><DECCOMPRIMENTO>0</DECCOMPRIMENTO><DECLARGURA>0</DECLARGURA><DECALTURA>0</DECALTURA><FLTPESO>1</FLTPESO><BITSTATUS>true</BITSTATUS><BITCONTROLAESTOQUE>true</BITCONTROLAESTOQUE><STRKEYWORDS i:nil="true"/><STRDESCRIPTION i:nil="true"/><QTDEESTOQUEMINIMO>1</QTDEESTOQUEMINIMO><QTDEESTOQUE>10</QTDEESTOQUE><STRIP>179.126.76.179</STRIP><INTVENDAS>0</INTVENDAS><INTIDUSER>1</INTIDUSER><BITREDESSOCIAIS>true</BITREDESSOCIAIS><BITBNDES>false</BITBNDES><FLTQTDEMAXIMAVENDA>10</FLTQTDEMAXIMAVENDA><STRCODPRODUTOERP>123456</STRCODPRODUTOERP><BITATUALIZAPRECO>true</BITATUALIZAPRECO></Produto></Produtos></ListarProdutoResult></ListarProdutoResponse></s:Body></s:Envelope>
Well, then your service is likely returning null. if there are no errors then the proxy is sending and receiving messages.
You need to look at the actual HTTP traffic to see if the send/receive is working. Use something like Fiddler to capture requests.
+++ Rick ---
In My test return .null.
do wwDotNetBridge
DO maximawebserviceproxy
loProxy = CREATEOBJECT("maximawebserviceProxy","V2")
loProduto2 = loProxy.listarproduto("9d777a6f-5311-4c50-89e5-e091d8c89399","123456")
? loProduto2.Produtos ---> .NULL.
?loProxy.ceRRORMSG ----. is space
*---------------------------------
With SoapUI is ok, return xml
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:max="http://maximaweb.com.br/service/maximawebservice">
<soapenv:Header/>
<soapenv:Body>
<max:ListarProduto>
<!--Optional:-->
<max:STRTOKEN>9d777a6f-5311-4c50-89e5-e091d8c89399</max:STRTOKEN>
<!--Optional:-->
<max:STRREFERENCIA>123456</max:STRREFERENCIA>
</max:ListarProduto>
</soapenv:Body>
</soapenv:Envelope>
RETURN XML:
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Body>
<ListarProdutoResponse xmlns="http://maximaweb.com.br/service/maximawebservice">
<ListarProdutoResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
<InfoRetorno xmlns="">
<CODIGORETORNO>0</CODIGORETORNO>
<MENSAGEMRETORNO>OK</MENSAGEMRETORNO>
</InfoRetorno>
<Produtos xmlns="">
<Produto>
<INTIDPRODUTO>1</INTIDPRODUTO>
<INTIDFORNECEDOR>1</INTIDFORNECEDOR>
<STRNOME>Produto 01</STRNOME>
<STRREFERENCIA>123456</STRREFERENCIA>
<INTIDMARCA>1</INTIDMARCA>
<INTIDUNIDADEMEDIDA>1</INTIDUNIDADEMEDIDA>
<INTORIGEM>1</INTORIGEM>
<MNYPRECOCUSTO>100.0000</MNYPRECOCUSTO>
<MNYMARGEMDESCONTODE>5.0000</MNYMARGEMDESCONTODE>
<MNYPRECOPOR>95.0000</MNYPRECOPOR>
<STRIMAGEM>sem_imagem.gif</STRIMAGEM>
<STRDESCRICAO i:nil="true"/>
<BITDESTAQUE>false</BITDESTAQUE>
<BITPROMOCAO>false</BITPROMOCAO>
<BITLANCAMENTO>false</BITLANCAMENTO>
<BITFRETEGRATIS>false</BITFRETEGRATIS>
<BITSUBCONSULTA>false</BITSUBCONSULTA>
<BITVENDAEXTRASITE>false</BITVENDAEXTRASITE>
<BITEXCLUSIVIDADE>false</BITEXCLUSIVIDADE>
<DECCOMPRIMENTO>0</DECCOMPRIMENTO>
<DECLARGURA>0</DECLARGURA>
<DECALTURA>0</DECALTURA>
<FLTPESO>1</FLTPESO>
<BITSTATUS>true</BITSTATUS>
<BITCONTROLAESTOQUE>true</BITCONTROLAESTOQUE>
<STRKEYWORDS i:nil="true"/>
<STRDESCRIPTION i:nil="true"/>
<QTDEESTOQUEMINIMO>1</QTDEESTOQUEMINIMO>
<QTDEESTOQUE>10</QTDEESTOQUE>
<STRIP>179.126.76.179</STRIP>
<INTVENDAS>0</INTVENDAS>
<INTIDUSER>1</INTIDUSER>
<BITREDESSOCIAIS>true</BITREDESSOCIAIS>
<BITBNDES>false</BITBNDES>
<FLTQTDEMAXIMAVENDA>10</FLTQTDEMAXIMAVENDA>
<STRCODPRODUTOERP>123456</STRCODPRODUTOERP>
<BITATUALIZAPRECO>true</BITATUALIZAPRECO>
</Produto>
</Produtos>
</ListarProdutoResult>
</ListarProdutoResponse>
</s:Body>
</s:Envelope>
Are you checking the result of cErrorMsg after you call listarProducto...
If you're getting null, and there's no error then the service is returning a null value to indicate no match maybe. Otherwise cErrorMsg should be set. When in doubt hook up an HTTP proxy like Fiddler and watch the request data going over the wire.
+++ Rick ---
No erro message, but i don't kwoy how obtain in cursor ou how obtain se result,
everthing return .null., i was test in SoupUI and return xml ocrrectly utilizinz this method, but
in visual foxprox, i need underting wich class i need to obtain the result.
What's the error message?
? loProxy.cErrorMsg
+++ Rick ---
Please Help me!
http://wsintegra.maximaweb.com.br/maximawebservice.svc?wsdl
How i obtain result the method listarproduto?
do wwDotNetBridge
DO maximawebserviceproxy
loProxy = CREATEOBJECT("maximawebserviceProxy","V2")
? loProxy.Init("V2",.T.)
? loProxy.LOadservice("V2")
loProduto2 = loProxy.listarproduto("9d777a6f-5311-4c50-89e5-e091d8c89399","123456")
? loProduto2.InfoRetorno
What does:
? loResponse
return? Is that null or (Object)? If it's not null then you are getting a result and you're just not accessing the result structure properly and you need to figure out what the result structure is.
+++ Rick ---
Thank you for your attention
But, I tried for their guidance but always (? loResponse.InfoRetorno) returns null and I can not make progress.
I wonder what might be happening, would test there?
Maria.
*------------------------------------------------------------------------------
This is what your result looks like:
<?xml version="1.0" encoding="utf-8"?>
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Body>
<ListarProdutoResponse xmlns="http://maximaweb.com.br/service/maximawebservice">
<ListarProdutoResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
<InfoRetorno xmlns="">
<CODIGORETORNO>0</CODIGORETORNO>
<MENSAGEMRETORNO>OK</MENSAGEMRETORNO>
</InfoRetorno>
<Produtos xmlns="">
<Produto>
<INTIDPRODUTO>1</INTIDPRODUTO>
<INTIDFORNECEDOR>1</INTIDFORNECEDOR>
<STRNOME>Produto 01</STRNOME>
<STRREFERENCIA>123456</STRREFERENCIA>
<INTIDMARCA>1</INTIDMARCA>
<INTIDUNIDADEMEDIDA>1</INTIDUNIDADEMEDIDA>
<INTORIGEM>1</INTORIGEM>
<MNYPRECOCUSTO>100.0000</MNYPRECOCUSTO>
<MNYMARGEMDESCONTODE>5.0000</MNYMARGEMDESCONTODE>
<MNYPRECOPOR>95.0000</MNYPRECOPOR>
<STRIMAGEM>sem_imagem.gif</STRIMAGEM>
<STRDESCRICAO i:nil="true"/>
<BITDESTAQUE>false</BITDESTAQUE>
<BITPROMOCAO>false</BITPROMOCAO>
<BITLANCAMENTO>false</BITLANCAMENTO>
<BITFRETEGRATIS>false</BITFRETEGRATIS>
<BITSUBCONSULTA>false</BITSUBCONSULTA>
<BITVENDAEXTRASITE>false</BITVENDAEXTRASITE>
<BITEXCLUSIVIDADE>false</BITEXCLUSIVIDADE>
<DECCOMPRIMENTO>0</DECCOMPRIMENTO>
<DECLARGURA>0</DECLARGURA>
<DECALTURA>0</DECALTURA>
<FLTPESO>1</FLTPESO>
<BITSTATUS>true</BITSTATUS>
<BITCONTROLAESTOQUE>true</BITCONTROLAESTOQUE>
<STRKEYWORDS i:nil="true"/>
<STRDESCRIPTION i:nil="true"/>
<QTDEESTOQUEMINIMO>1</QTDEESTOQUEMINIMO>
<QTDEESTOQUE>10</QTDEESTOQUE>
<STRIP>179.126.76.179</STRIP>
<INTVENDAS>0</INTVENDAS>
<INTIDUSER>1</INTIDUSER>
<BITREDESSOCIAIS>true</BITREDESSOCIAIS>
<BITBNDES>false</BITBNDES>
<FLTQTDEMAXIMAVENDA>10</FLTQTDEMAXIMAVENDA>
<STRCODPRODUTOERP>123456</STRCODPRODUTOERP>
<BITATUALIZAPRECO>true</BITATUALIZAPRECO>
</Produto>
</Produtos>
</ListarProdutoResult>
</ListarProdutoResponse>
</s:Body>
</s:Envelope>
So you have an array of Productos:
loResponse = && Web Service Call Result
? loResponse.InfoRetorno.MENSAGEMRETORNOloProducts = loBridge.GetProperty(loResponse,"Productos")
? loProducts.Count
FOR lnX = 0 to loProducts.Count-1
loProduct = loProducts.Item(lnX)
? loProduct.StrNome
ENDFOR
+++ Rick ---
I Checked with Fiddler, it's ok.
But i don't know how obtain return in cusor (browse) this result
Can i use ? loproxy.OBRIDGE.xmlstringtodataset ??
which the next step or method to get response..
My test in Fiddler:
Utilizing method ListarProduto:
<?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><soap:Body><ListarProduto xmlns="http://maximaweb.com.br/service/maximawebservice"><STRTOKEN>9d777a6f-5311-4c50-89e5-e091d8c89399</STRTOKEN><STRREFERENCIA>123456</STRREFERENCIA></ListarProduto></soap:Body></soap:Envelope>
Result return:
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"><s:Body><ListarProdutoResponse xmlns="http://maximaweb.com.br/service/maximawebservice"><ListarProdutoResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance"><InfoRetorno xmlns=""><CODIGORETORNO>0</CODIGORETORNO><MENSAGEMRETORNO>OK</MENSAGEMRETORNO></InfoRetorno><Produtos xmlns=""><Produto><INTIDPRODUTO>1</INTIDPRODUTO><INTIDFORNECEDOR>1</INTIDFORNECEDOR><STRNOME>Produto 01</STRNOME><STRREFERENCIA>123456</STRREFERENCIA><INTIDMARCA>1</INTIDMARCA><INTIDUNIDADEMEDIDA>1</INTIDUNIDADEMEDIDA><INTORIGEM>1</INTORIGEM><MNYPRECOCUSTO>100.0000</MNYPRECOCUSTO><MNYMARGEMDESCONTODE>5.0000</MNYMARGEMDESCONTODE><MNYPRECOPOR>95.0000</MNYPRECOPOR><STRIMAGEM>sem_imagem.gif</STRIMAGEM><STRDESCRICAO i:nil="true"/><BITDESTAQUE>false</BITDESTAQUE><BITPROMOCAO>false</BITPROMOCAO><BITLANCAMENTO>false</BITLANCAMENTO><BITFRETEGRATIS>false</BITFRETEGRATIS><BITSUBCONSULTA>false</BITSUBCONSULTA><BITVENDAEXTRASITE>false</BITVENDAEXTRASITE><BITEXCLUSIVIDADE>false</BITEXCLUSIVIDADE><DECCOMPRIMENTO>0</DECCOMPRIMENTO><DECLARGURA>0</DECLARGURA><DECALTURA>0</DECALTURA><FLTPESO>1</FLTPESO><BITSTATUS>true</BITSTATUS><BITCONTROLAESTOQUE>true</BITCONTROLAESTOQUE><STRKEYWORDS i:nil="true"/><STRDESCRIPTION i:nil="true"/><QTDEESTOQUEMINIMO>1</QTDEESTOQUEMINIMO><QTDEESTOQUE>10</QTDEESTOQUE><STRIP>179.126.76.179</STRIP><INTVENDAS>0</INTVENDAS><INTIDUSER>1</INTIDUSER><BITREDESSOCIAIS>true</BITREDESSOCIAIS><BITBNDES>false</BITBNDES><FLTQTDEMAXIMAVENDA>10</FLTQTDEMAXIMAVENDA><STRCODPRODUTOERP>123456</STRCODPRODUTOERP><BITATUALIZAPRECO>true</BITATUALIZAPRECO></Produto></Produtos></ListarProdutoResult></ListarProdutoResponse></s:Body></s:Envelope>
Well, then your service is likely returning null. if there are no errors then the proxy is sending and receiving messages.
You need to look at the actual HTTP traffic to see if the send/receive is working. Use something like Fiddler to capture requests.
+++ Rick ---
In My test return .null.
do wwDotNetBridge
DO maximawebserviceproxy
loProxy = CREATEOBJECT("maximawebserviceProxy","V2")
loProduto2 = loProxy.listarproduto("9d777a6f-5311-4c50-89e5-e091d8c89399","123456")
? loProduto2.Produtos ---> .NULL.
?loProxy.ceRRORMSG ----. is space
*---------------------------------
With SoapUI is ok, return xml
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:max="http://maximaweb.com.br/service/maximawebservice">
<soapenv:Header/>
<soapenv:Body>
<max:ListarProduto>
<!--Optional:-->
<max:STRTOKEN>9d777a6f-5311-4c50-89e5-e091d8c89399</max:STRTOKEN>
<!--Optional:-->
<max:STRREFERENCIA>123456</max:STRREFERENCIA>
</max:ListarProduto>
</soapenv:Body>
</soapenv:Envelope>
RETURN XML:
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Body>
<ListarProdutoResponse xmlns="http://maximaweb.com.br/service/maximawebservice">
<ListarProdutoResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
<InfoRetorno xmlns="">
<CODIGORETORNO>0</CODIGORETORNO>
<MENSAGEMRETORNO>OK</MENSAGEMRETORNO>
</InfoRetorno>
<Produtos xmlns="">
<Produto>
<INTIDPRODUTO>1</INTIDPRODUTO>
<INTIDFORNECEDOR>1</INTIDFORNECEDOR>
<STRNOME>Produto 01</STRNOME>
<STRREFERENCIA>123456</STRREFERENCIA>
<INTIDMARCA>1</INTIDMARCA>
<INTIDUNIDADEMEDIDA>1</INTIDUNIDADEMEDIDA>
<INTORIGEM>1</INTORIGEM>
<MNYPRECOCUSTO>100.0000</MNYPRECOCUSTO>
<MNYMARGEMDESCONTODE>5.0000</MNYMARGEMDESCONTODE>
<MNYPRECOPOR>95.0000</MNYPRECOPOR>
<STRIMAGEM>sem_imagem.gif</STRIMAGEM>
<STRDESCRICAO i:nil="true"/>
<BITDESTAQUE>false</BITDESTAQUE>
<BITPROMOCAO>false</BITPROMOCAO>
<BITLANCAMENTO>false</BITLANCAMENTO>
<BITFRETEGRATIS>false</BITFRETEGRATIS>
<BITSUBCONSULTA>false</BITSUBCONSULTA>
<BITVENDAEXTRASITE>false</BITVENDAEXTRASITE>
<BITEXCLUSIVIDADE>false</BITEXCLUSIVIDADE>
<DECCOMPRIMENTO>0</DECCOMPRIMENTO>
<DECLARGURA>0</DECLARGURA>
<DECALTURA>0</DECALTURA>
<FLTPESO>1</FLTPESO>
<BITSTATUS>true</BITSTATUS>
<BITCONTROLAESTOQUE>true</BITCONTROLAESTOQUE>
<STRKEYWORDS i:nil="true"/>
<STRDESCRIPTION i:nil="true"/>
<QTDEESTOQUEMINIMO>1</QTDEESTOQUEMINIMO>
<QTDEESTOQUE>10</QTDEESTOQUE>
<STRIP>179.126.76.179</STRIP>
<INTVENDAS>0</INTVENDAS>
<INTIDUSER>1</INTIDUSER>
<BITREDESSOCIAIS>true</BITREDESSOCIAIS>
<BITBNDES>false</BITBNDES>
<FLTQTDEMAXIMAVENDA>10</FLTQTDEMAXIMAVENDA>
<STRCODPRODUTOERP>123456</STRCODPRODUTOERP>
<BITATUALIZAPRECO>true</BITATUALIZAPRECO>
</Produto>
</Produtos>
</ListarProdutoResult>
</ListarProdutoResponse>
</s:Body>
</s:Envelope>
Are you checking the result of cErrorMsg after you call listarProducto...
If you're getting null, and there's no error then the service is returning a null value to indicate no match maybe. Otherwise cErrorMsg should be set. When in doubt hook up an HTTP proxy like Fiddler and watch the request data going over the wire.
+++ Rick ---
No erro message, but i don't kwoy how obtain in cursor ou how obtain se result,
everthing return .null., i was test in SoupUI and return xml ocrrectly utilizinz this method, but
in visual foxprox, i need underting wich class i need to obtain the result.
What's the error message?
? loProxy.cErrorMsg
+++ Rick ---
Please Help me!
http://wsintegra.maximaweb.com.br/maximawebservice.svc?wsdl
How i obtain result the method listarproduto?
do wwDotNetBridge
DO maximawebserviceproxy
loProxy = CREATEOBJECT("maximawebserviceProxy","V2")
? loProxy.Init("V2",.T.)
? loProxy.LOadservice("V2")
loProduto2 = loProxy.listarproduto("9d777a6f-5311-4c50-89e5-e091d8c89399","123456")
? loProduto2.InfoRetorno
West Wind Technologies
Making waves on the Web
from Maui
Sorry to bother you but can solve this step is of paramount importance,
I know we're getting close. Thank you for your patience. If successful the intention is to buy the product.
Under this coding in c # method
------------------------------------------------------------------
public ListarProdutosResponse ListarProduto(string STRTOKEN, [System.Xml.Serialization.XmlElementAttribute(IsNullable=true)] string STRREFERENCIA) {
object[] results = this.Invoke("ListarProduto", new object[] {
STRTOKEN,
STRREFERENCIA});
return ((ListarProdutosResponse)(results[0]));
*-------------------------------------------------------------------------
public partial class ListarProdutosResponse {
/// <remarks/>
[System.Xml.Serialization.XmlElementAttribute(IsNullable=true, Order=0)]
public InfoRetorno InfoRetorno;
/// <remarks/>
[System.Xml.Serialization.XmlArrayAttribute(IsNullable=true, Order=1)]
public Produto[] Produtos;
*--------------------------------------------------------------------------------------
And in Visual Foxpro when I use the method
************************************************************************
* ListarProduto
****************************************
FUNCTION ListarProduto(STRTOKEN as String,STRREFERENCIA as String) as ListarProdutosResponse
LOCAL loException as Exception, lvResult as ListarProdutosResponse
THIS.lError = .F.
this.cErrorMsg = ""
lvResult = .F.
*!* SET STEP ON
TRY
lvResult = this.oBridge.InvokeMethod(this.oService, "ListarProduto", STRTOKEN,STRREFERENCIA)
CATCH to loException
THIS.GetErrorDetail(loException)
ENDTRY
RETURN lvResult
ENDFUNC
* ListarProduto
*-----------------------------------------------------------------------------------------------------------------------
My program
clear
do wwDotNetBridge
DO maximawebserviceproxy
loProxy = CREATEOBJECT("maximawebserviceProxy","V2")
loBridge = CREATEOBJECT("wwDotNetBridge")
loProduto = loProxy.listarproduto("9d777a6f-5311-4c50-89e5-e091d8c89399","123456")
? loProduto --> object
? loProduto.InfoRetorno ---> null
? loProduto.InfoRetorno.CODIGORETORNO --- InfoRetorno not object (error message)
Thanks .. Maria
******************************************************************************
You need to look at the actual structure of the object returned. You can use Reflector to do this.
What does:
? loResponse
return? Is that null or (Object)? If it's not null then you are getting a result and you're just not accessing the result structure properly and you need to figure out what the result structure is.
+++ Rick ---
Thank you for your attention
But, I tried for their guidance but always (? loResponse.InfoRetorno) returns null and I can not make progress.
I wonder what might be happening, would test there?
Maria.
*------------------------------------------------------------------------------
This is what your result looks like:
<?xml version="1.0" encoding="utf-8"?>
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Body>
<ListarProdutoResponse xmlns="http://maximaweb.com.br/service/maximawebservice">
<ListarProdutoResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
<InfoRetorno xmlns="">
<CODIGORETORNO>0</CODIGORETORNO>
<MENSAGEMRETORNO>OK</MENSAGEMRETORNO>
</InfoRetorno>
<Produtos xmlns="">
<Produto>
<INTIDPRODUTO>1</INTIDPRODUTO>
<INTIDFORNECEDOR>1</INTIDFORNECEDOR>
<STRNOME>Produto 01</STRNOME>
<STRREFERENCIA>123456</STRREFERENCIA>
<INTIDMARCA>1</INTIDMARCA>
<INTIDUNIDADEMEDIDA>1</INTIDUNIDADEMEDIDA>
<INTORIGEM>1</INTORIGEM>
<MNYPRECOCUSTO>100.0000</MNYPRECOCUSTO>
<MNYMARGEMDESCONTODE>5.0000</MNYMARGEMDESCONTODE>
<MNYPRECOPOR>95.0000</MNYPRECOPOR>
<STRIMAGEM>sem_imagem.gif</STRIMAGEM>
<STRDESCRICAO i:nil="true"/>
<BITDESTAQUE>false</BITDESTAQUE>
<BITPROMOCAO>false</BITPROMOCAO>
<BITLANCAMENTO>false</BITLANCAMENTO>
<BITFRETEGRATIS>false</BITFRETEGRATIS>
<BITSUBCONSULTA>false</BITSUBCONSULTA>
<BITVENDAEXTRASITE>false</BITVENDAEXTRASITE>
<BITEXCLUSIVIDADE>false</BITEXCLUSIVIDADE>
<DECCOMPRIMENTO>0</DECCOMPRIMENTO>
<DECLARGURA>0</DECLARGURA>
<DECALTURA>0</DECALTURA>
<FLTPESO>1</FLTPESO>
<BITSTATUS>true</BITSTATUS>
<BITCONTROLAESTOQUE>true</BITCONTROLAESTOQUE>
<STRKEYWORDS i:nil="true"/>
<STRDESCRIPTION i:nil="true"/>
<QTDEESTOQUEMINIMO>1</QTDEESTOQUEMINIMO>
<QTDEESTOQUE>10</QTDEESTOQUE>
<STRIP>179.126.76.179</STRIP>
<INTVENDAS>0</INTVENDAS>
<INTIDUSER>1</INTIDUSER>
<BITREDESSOCIAIS>true</BITREDESSOCIAIS>
<BITBNDES>false</BITBNDES>
<FLTQTDEMAXIMAVENDA>10</FLTQTDEMAXIMAVENDA>
<STRCODPRODUTOERP>123456</STRCODPRODUTOERP>
<BITATUALIZAPRECO>true</BITATUALIZAPRECO>
</Produto>
</Produtos>
</ListarProdutoResult>
</ListarProdutoResponse>
</s:Body>
</s:Envelope>
So you have an array of Productos:
loResponse = && Web Service Call Result
? loResponse.InfoRetorno.MENSAGEMRETORNOloProducts = loBridge.GetProperty(loResponse,"Productos")
? loProducts.Count
FOR lnX = 0 to loProducts.Count-1
loProduct = loProducts.Item(lnX)
? loProduct.StrNome
ENDFOR
+++ Rick ---
I Checked with Fiddler, it's ok.
But i don't know how obtain return in cusor (browse) this result
Can i use ? loproxy.OBRIDGE.xmlstringtodataset ??
which the next step or method to get response..
My test in Fiddler:
Utilizing method ListarProduto:
<?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><soap:Body><ListarProduto xmlns="http://maximaweb.com.br/service/maximawebservice"><STRTOKEN>9d777a6f-5311-4c50-89e5-e091d8c89399</STRTOKEN><STRREFERENCIA>123456</STRREFERENCIA></ListarProduto></soap:Body></soap:Envelope>
Result return:
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"><s:Body><ListarProdutoResponse xmlns="http://maximaweb.com.br/service/maximawebservice"><ListarProdutoResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance"><InfoRetorno xmlns=""><CODIGORETORNO>0</CODIGORETORNO><MENSAGEMRETORNO>OK</MENSAGEMRETORNO></InfoRetorno><Produtos xmlns=""><Produto><INTIDPRODUTO>1</INTIDPRODUTO><INTIDFORNECEDOR>1</INTIDFORNECEDOR><STRNOME>Produto 01</STRNOME><STRREFERENCIA>123456</STRREFERENCIA><INTIDMARCA>1</INTIDMARCA><INTIDUNIDADEMEDIDA>1</INTIDUNIDADEMEDIDA><INTORIGEM>1</INTORIGEM><MNYPRECOCUSTO>100.0000</MNYPRECOCUSTO><MNYMARGEMDESCONTODE>5.0000</MNYMARGEMDESCONTODE><MNYPRECOPOR>95.0000</MNYPRECOPOR><STRIMAGEM>sem_imagem.gif</STRIMAGEM><STRDESCRICAO i:nil="true"/><BITDESTAQUE>false</BITDESTAQUE><BITPROMOCAO>false</BITPROMOCAO><BITLANCAMENTO>false</BITLANCAMENTO><BITFRETEGRATIS>false</BITFRETEGRATIS><BITSUBCONSULTA>false</BITSUBCONSULTA><BITVENDAEXTRASITE>false</BITVENDAEXTRASITE><BITEXCLUSIVIDADE>false</BITEXCLUSIVIDADE><DECCOMPRIMENTO>0</DECCOMPRIMENTO><DECLARGURA>0</DECLARGURA><DECALTURA>0</DECALTURA><FLTPESO>1</FLTPESO><BITSTATUS>true</BITSTATUS><BITCONTROLAESTOQUE>true</BITCONTROLAESTOQUE><STRKEYWORDS i:nil="true"/><STRDESCRIPTION i:nil="true"/><QTDEESTOQUEMINIMO>1</QTDEESTOQUEMINIMO><QTDEESTOQUE>10</QTDEESTOQUE><STRIP>179.126.76.179</STRIP><INTVENDAS>0</INTVENDAS><INTIDUSER>1</INTIDUSER><BITREDESSOCIAIS>true</BITREDESSOCIAIS><BITBNDES>false</BITBNDES><FLTQTDEMAXIMAVENDA>10</FLTQTDEMAXIMAVENDA><STRCODPRODUTOERP>123456</STRCODPRODUTOERP><BITATUALIZAPRECO>true</BITATUALIZAPRECO></Produto></Produtos></ListarProdutoResult></ListarProdutoResponse></s:Body></s:Envelope>
Well, then your service is likely returning null. if there are no errors then the proxy is sending and receiving messages.
You need to look at the actual HTTP traffic to see if the send/receive is working. Use something like Fiddler to capture requests.
+++ Rick ---
In My test return .null.
do wwDotNetBridge
DO maximawebserviceproxy
loProxy = CREATEOBJECT("maximawebserviceProxy","V2")
loProduto2 = loProxy.listarproduto("9d777a6f-5311-4c50-89e5-e091d8c89399","123456")
? loProduto2.Produtos ---> .NULL.
?loProxy.ceRRORMSG ----. is space
*---------------------------------
With SoapUI is ok, return xml
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:max="http://maximaweb.com.br/service/maximawebservice">
<soapenv:Header/>
<soapenv:Body>
<max:ListarProduto>
<!--Optional:-->
<max:STRTOKEN>9d777a6f-5311-4c50-89e5-e091d8c89399</max:STRTOKEN>
<!--Optional:-->
<max:STRREFERENCIA>123456</max:STRREFERENCIA>
</max:ListarProduto>
</soapenv:Body>
</soapenv:Envelope>
RETURN XML:
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Body>
<ListarProdutoResponse xmlns="http://maximaweb.com.br/service/maximawebservice">
<ListarProdutoResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
<InfoRetorno xmlns="">
<CODIGORETORNO>0</CODIGORETORNO>
<MENSAGEMRETORNO>OK</MENSAGEMRETORNO>
</InfoRetorno>
<Produtos xmlns="">
<Produto>
<INTIDPRODUTO>1</INTIDPRODUTO>
<INTIDFORNECEDOR>1</INTIDFORNECEDOR>
<STRNOME>Produto 01</STRNOME>
<STRREFERENCIA>123456</STRREFERENCIA>
<INTIDMARCA>1</INTIDMARCA>
<INTIDUNIDADEMEDIDA>1</INTIDUNIDADEMEDIDA>
<INTORIGEM>1</INTORIGEM>
<MNYPRECOCUSTO>100.0000</MNYPRECOCUSTO>
<MNYMARGEMDESCONTODE>5.0000</MNYMARGEMDESCONTODE>
<MNYPRECOPOR>95.0000</MNYPRECOPOR>
<STRIMAGEM>sem_imagem.gif</STRIMAGEM>
<STRDESCRICAO i:nil="true"/>
<BITDESTAQUE>false</BITDESTAQUE>
<BITPROMOCAO>false</BITPROMOCAO>
<BITLANCAMENTO>false</BITLANCAMENTO>
<BITFRETEGRATIS>false</BITFRETEGRATIS>
<BITSUBCONSULTA>false</BITSUBCONSULTA>
<BITVENDAEXTRASITE>false</BITVENDAEXTRASITE>
<BITEXCLUSIVIDADE>false</BITEXCLUSIVIDADE>
<DECCOMPRIMENTO>0</DECCOMPRIMENTO>
<DECLARGURA>0</DECLARGURA>
<DECALTURA>0</DECALTURA>
<FLTPESO>1</FLTPESO>
<BITSTATUS>true</BITSTATUS>
<BITCONTROLAESTOQUE>true</BITCONTROLAESTOQUE>
<STRKEYWORDS i:nil="true"/>
<STRDESCRIPTION i:nil="true"/>
<QTDEESTOQUEMINIMO>1</QTDEESTOQUEMINIMO>
<QTDEESTOQUE>10</QTDEESTOQUE>
<STRIP>179.126.76.179</STRIP>
<INTVENDAS>0</INTVENDAS>
<INTIDUSER>1</INTIDUSER>
<BITREDESSOCIAIS>true</BITREDESSOCIAIS>
<BITBNDES>false</BITBNDES>
<FLTQTDEMAXIMAVENDA>10</FLTQTDEMAXIMAVENDA>
<STRCODPRODUTOERP>123456</STRCODPRODUTOERP>
<BITATUALIZAPRECO>true</BITATUALIZAPRECO>
</Produto>
</Produtos>
</ListarProdutoResult>
</ListarProdutoResponse>
</s:Body>
</s:Envelope>
Are you checking the result of cErrorMsg after you call listarProducto...
If you're getting null, and there's no error then the service is returning a null value to indicate no match maybe. Otherwise cErrorMsg should be set. When in doubt hook up an HTTP proxy like Fiddler and watch the request data going over the wire.
+++ Rick ---
No erro message, but i don't kwoy how obtain in cursor ou how obtain se result,
everthing return .null., i was test in SoupUI and return xml ocrrectly utilizinz this method, but
in visual foxprox, i need underting wich class i need to obtain the result.
What's the error message?
? loProxy.cErrorMsg
+++ Rick ---
Please Help me!
http://wsintegra.maximaweb.com.br/maximawebservice.svc?wsdl
How i obtain result the method listarproduto?
do wwDotNetBridge
DO maximawebserviceproxy
loProxy = CREATEOBJECT("maximawebserviceProxy","V2")
? loProxy.Init("V2",.T.)
? loProxy.LOadservice("V2")
loProduto2 = loProxy.listarproduto("9d777a6f-5311-4c50-89e5-e091d8c89399","123456")
? loProduto2.InfoRetorno
Hi,
Sorry to bother you but can solve this step is of paramount importance,
I know we're getting close. Thank you for your patience. If successful the intention is to buy the product.
Under this coding in c # method
------------------------------------------------------------------
public ListarProdutosResponse ListarProduto(string STRTOKEN, [System.Xml.Serialization.XmlElementAttribute(IsNullable=true)] string STRREFERENCIA) {
object[] results = this.Invoke("ListarProduto", new object[] {
STRTOKEN,
STRREFERENCIA});
return ((ListarProdutosResponse)(results[0]));
*-------------------------------------------------------------------------
public partial class ListarProdutosResponse {
/// <remarks/>
[System.Xml.Serialization.XmlElementAttribute(IsNullable=true, Order=0)]
public InfoRetorno InfoRetorno;
/// <remarks/>
[System.Xml.Serialization.XmlArrayAttribute(IsNullable=true, Order=1)]
public Produto[] Produtos;
*--------------------------------------------------------------------------------------
And in Visual Foxpro when I use the method
************************************************************************
* ListarProduto
****************************************
FUNCTION ListarProduto(STRTOKEN as String,STRREFERENCIA as String) as ListarProdutosResponse
LOCAL loException as Exception, lvResult as ListarProdutosResponse
THIS.lError = .F.
this.cErrorMsg = ""
lvResult = .F.
*!* SET STEP ON
TRY
lvResult = this.oBridge.InvokeMethod(this.oService, "ListarProduto", STRTOKEN,STRREFERENCIA)
CATCH to loException
THIS.GetErrorDetail(loException)
ENDTRY
RETURN lvResult
ENDFUNC
* ListarProduto
*-----------------------------------------------------------------------------------------------------------------------
My program
clear
do wwDotNetBridge
DO maximawebserviceproxy
loProxy = CREATEOBJECT("maximawebserviceProxy","V2")
loBridge = CREATEOBJECT("wwDotNetBridge")
loProduto = loProxy.listarproduto("9d777a6f-5311-4c50-89e5-e091d8c89399","123456")
? loProduto --> object
? loProduto.InfoRetorno ---> null
? loProduto.InfoRetorno.CODIGORETORNO --- InfoRetorno not object (error message)
Thanks .. Maria
******************************************************************************
You need to look at the actual structure of the object returned. You can use Reflector to do this.
What does:
? loResponse
return? Is that null or (Object)? If it's not null then you are getting a result and you're just not accessing the result structure properly and you need to figure out what the result structure is.
+++ Rick ---
Thank you for your attention
But, I tried for their guidance but always (? loResponse.InfoRetorno) returns null and I can not make progress.
I wonder what might be happening, would test there?
Maria.
*------------------------------------------------------------------------------
This is what your result looks like:
<?xml version="1.0" encoding="utf-8"?>
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Body>
<ListarProdutoResponse xmlns="http://maximaweb.com.br/service/maximawebservice">
<ListarProdutoResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
<InfoRetorno xmlns="">
<CODIGORETORNO>0</CODIGORETORNO>
<MENSAGEMRETORNO>OK</MENSAGEMRETORNO>
</InfoRetorno>
<Produtos xmlns="">
<Produto>
<INTIDPRODUTO>1</INTIDPRODUTO>
<INTIDFORNECEDOR>1</INTIDFORNECEDOR>
<STRNOME>Produto 01</STRNOME>
<STRREFERENCIA>123456</STRREFERENCIA>
<INTIDMARCA>1</INTIDMARCA>
<INTIDUNIDADEMEDIDA>1</INTIDUNIDADEMEDIDA>
<INTORIGEM>1</INTORIGEM>
<MNYPRECOCUSTO>100.0000</MNYPRECOCUSTO>
<MNYMARGEMDESCONTODE>5.0000</MNYMARGEMDESCONTODE>
<MNYPRECOPOR>95.0000</MNYPRECOPOR>
<STRIMAGEM>sem_imagem.gif</STRIMAGEM>
<STRDESCRICAO i:nil="true"/>
<BITDESTAQUE>false</BITDESTAQUE>
<BITPROMOCAO>false</BITPROMOCAO>
<BITLANCAMENTO>false</BITLANCAMENTO>
<BITFRETEGRATIS>false</BITFRETEGRATIS>
<BITSUBCONSULTA>false</BITSUBCONSULTA>
<BITVENDAEXTRASITE>false</BITVENDAEXTRASITE>
<BITEXCLUSIVIDADE>false</BITEXCLUSIVIDADE>
<DECCOMPRIMENTO>0</DECCOMPRIMENTO>
<DECLARGURA>0</DECLARGURA>
<DECALTURA>0</DECALTURA>
<FLTPESO>1</FLTPESO>
<BITSTATUS>true</BITSTATUS>
<BITCONTROLAESTOQUE>true</BITCONTROLAESTOQUE>
<STRKEYWORDS i:nil="true"/>
<STRDESCRIPTION i:nil="true"/>
<QTDEESTOQUEMINIMO>1</QTDEESTOQUEMINIMO>
<QTDEESTOQUE>10</QTDEESTOQUE>
<STRIP>179.126.76.179</STRIP>
<INTVENDAS>0</INTVENDAS>
<INTIDUSER>1</INTIDUSER>
<BITREDESSOCIAIS>true</BITREDESSOCIAIS>
<BITBNDES>false</BITBNDES>
<FLTQTDEMAXIMAVENDA>10</FLTQTDEMAXIMAVENDA>
<STRCODPRODUTOERP>123456</STRCODPRODUTOERP>
<BITATUALIZAPRECO>true</BITATUALIZAPRECO>
</Produto>
</Produtos>
</ListarProdutoResult>
</ListarProdutoResponse>
</s:Body>
</s:Envelope>
So you have an array of Productos:
loResponse = && Web Service Call Result
? loResponse.InfoRetorno.MENSAGEMRETORNOloProducts = loBridge.GetProperty(loResponse,"Productos")
? loProducts.Count
FOR lnX = 0 to loProducts.Count-1
loProduct = loProducts.Item(lnX)
? loProduct.StrNome
ENDFOR
+++ Rick ---
I Checked with Fiddler, it's ok.
But i don't know how obtain return in cusor (browse) this result
Can i use ? loproxy.OBRIDGE.xmlstringtodataset ??
which the next step or method to get response..
My test in Fiddler:
Utilizing method ListarProduto:
<?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><soap:Body><ListarProduto xmlns="http://maximaweb.com.br/service/maximawebservice"><STRTOKEN>9d777a6f-5311-4c50-89e5-e091d8c89399</STRTOKEN><STRREFERENCIA>123456</STRREFERENCIA></ListarProduto></soap:Body></soap:Envelope>
Result return:
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"><s:Body><ListarProdutoResponse xmlns="http://maximaweb.com.br/service/maximawebservice"><ListarProdutoResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance"><InfoRetorno xmlns=""><CODIGORETORNO>0</CODIGORETORNO><MENSAGEMRETORNO>OK</MENSAGEMRETORNO></InfoRetorno><Produtos xmlns=""><Produto><INTIDPRODUTO>1</INTIDPRODUTO><INTIDFORNECEDOR>1</INTIDFORNECEDOR><STRNOME>Produto 01</STRNOME><STRREFERENCIA>123456</STRREFERENCIA><INTIDMARCA>1</INTIDMARCA><INTIDUNIDADEMEDIDA>1</INTIDUNIDADEMEDIDA><INTORIGEM>1</INTORIGEM><MNYPRECOCUSTO>100.0000</MNYPRECOCUSTO><MNYMARGEMDESCONTODE>5.0000</MNYMARGEMDESCONTODE><MNYPRECOPOR>95.0000</MNYPRECOPOR><STRIMAGEM>sem_imagem.gif</STRIMAGEM><STRDESCRICAO i:nil="true"/><BITDESTAQUE>false</BITDESTAQUE><BITPROMOCAO>false</BITPROMOCAO><BITLANCAMENTO>false</BITLANCAMENTO><BITFRETEGRATIS>false</BITFRETEGRATIS><BITSUBCONSULTA>false</BITSUBCONSULTA><BITVENDAEXTRASITE>false</BITVENDAEXTRASITE><BITEXCLUSIVIDADE>false</BITEXCLUSIVIDADE><DECCOMPRIMENTO>0</DECCOMPRIMENTO><DECLARGURA>0</DECLARGURA><DECALTURA>0</DECALTURA><FLTPESO>1</FLTPESO><BITSTATUS>true</BITSTATUS><BITCONTROLAESTOQUE>true</BITCONTROLAESTOQUE><STRKEYWORDS i:nil="true"/><STRDESCRIPTION i:nil="true"/><QTDEESTOQUEMINIMO>1</QTDEESTOQUEMINIMO><QTDEESTOQUE>10</QTDEESTOQUE><STRIP>179.126.76.179</STRIP><INTVENDAS>0</INTVENDAS><INTIDUSER>1</INTIDUSER><BITREDESSOCIAIS>true</BITREDESSOCIAIS><BITBNDES>false</BITBNDES><FLTQTDEMAXIMAVENDA>10</FLTQTDEMAXIMAVENDA><STRCODPRODUTOERP>123456</STRCODPRODUTOERP><BITATUALIZAPRECO>true</BITATUALIZAPRECO></Produto></Produtos></ListarProdutoResult></ListarProdutoResponse></s:Body></s:Envelope>
Well, then your service is likely returning null. if there are no errors then the proxy is sending and receiving messages.
You need to look at the actual HTTP traffic to see if the send/receive is working. Use something like Fiddler to capture requests.
+++ Rick ---
In My test return .null.
do wwDotNetBridge
DO maximawebserviceproxy
loProxy = CREATEOBJECT("maximawebserviceProxy","V2")
loProduto2 = loProxy.listarproduto("9d777a6f-5311-4c50-89e5-e091d8c89399","123456")
? loProduto2.Produtos ---> .NULL.
?loProxy.ceRRORMSG ----. is space
*---------------------------------
With SoapUI is ok, return xml
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:max="http://maximaweb.com.br/service/maximawebservice">
<soapenv:Header/>
<soapenv:Body>
<max:ListarProduto>
<!--Optional:-->
<max:STRTOKEN>9d777a6f-5311-4c50-89e5-e091d8c89399</max:STRTOKEN>
<!--Optional:-->
<max:STRREFERENCIA>123456</max:STRREFERENCIA>
</max:ListarProduto>
</soapenv:Body>
</soapenv:Envelope>
RETURN XML:
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Body>
<ListarProdutoResponse xmlns="http://maximaweb.com.br/service/maximawebservice">
<ListarProdutoResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
<InfoRetorno xmlns="">
<CODIGORETORNO>0</CODIGORETORNO>
<MENSAGEMRETORNO>OK</MENSAGEMRETORNO>
</InfoRetorno>
<Produtos xmlns="">
<Produto>
<INTIDPRODUTO>1</INTIDPRODUTO>
<INTIDFORNECEDOR>1</INTIDFORNECEDOR>
<STRNOME>Produto 01</STRNOME>
<STRREFERENCIA>123456</STRREFERENCIA>
<INTIDMARCA>1</INTIDMARCA>
<INTIDUNIDADEMEDIDA>1</INTIDUNIDADEMEDIDA>
<INTORIGEM>1</INTORIGEM>
<MNYPRECOCUSTO>100.0000</MNYPRECOCUSTO>
<MNYMARGEMDESCONTODE>5.0000</MNYMARGEMDESCONTODE>
<MNYPRECOPOR>95.0000</MNYPRECOPOR>
<STRIMAGEM>sem_imagem.gif</STRIMAGEM>
<STRDESCRICAO i:nil="true"/>
<BITDESTAQUE>false</BITDESTAQUE>
<BITPROMOCAO>false</BITPROMOCAO>
<BITLANCAMENTO>false</BITLANCAMENTO>
<BITFRETEGRATIS>false</BITFRETEGRATIS>
<BITSUBCONSULTA>false</BITSUBCONSULTA>
<BITVENDAEXTRASITE>false</BITVENDAEXTRASITE>
<BITEXCLUSIVIDADE>false</BITEXCLUSIVIDADE>
<DECCOMPRIMENTO>0</DECCOMPRIMENTO>
<DECLARGURA>0</DECLARGURA>
<DECALTURA>0</DECALTURA>
<FLTPESO>1</FLTPESO>
<BITSTATUS>true</BITSTATUS>
<BITCONTROLAESTOQUE>true</BITCONTROLAESTOQUE>
<STRKEYWORDS i:nil="true"/>
<STRDESCRIPTION i:nil="true"/>
<QTDEESTOQUEMINIMO>1</QTDEESTOQUEMINIMO>
<QTDEESTOQUE>10</QTDEESTOQUE>
<STRIP>179.126.76.179</STRIP>
<INTVENDAS>0</INTVENDAS>
<INTIDUSER>1</INTIDUSER>
<BITREDESSOCIAIS>true</BITREDESSOCIAIS>
<BITBNDES>false</BITBNDES>
<FLTQTDEMAXIMAVENDA>10</FLTQTDEMAXIMAVENDA>
<STRCODPRODUTOERP>123456</STRCODPRODUTOERP>
<BITATUALIZAPRECO>true</BITATUALIZAPRECO>
</Produto>
</Produtos>
</ListarProdutoResult>
</ListarProdutoResponse>
</s:Body>
</s:Envelope>
Are you checking the result of cErrorMsg after you call listarProducto...
If you're getting null, and there's no error then the service is returning a null value to indicate no match maybe. Otherwise cErrorMsg should be set. When in doubt hook up an HTTP proxy like Fiddler and watch the request data going over the wire.
+++ Rick ---
No erro message, but i don't kwoy how obtain in cursor ou how obtain se result,
everthing return .null., i was test in SoupUI and return xml ocrrectly utilizinz this method, but
in visual foxprox, i need underting wich class i need to obtain the result.
What's the error message?
? loProxy.cErrorMsg
+++ Rick ---
Please Help me!
http://wsintegra.maximaweb.com.br/maximawebservice.svc?wsdl
How i obtain result the method listarproduto?
do wwDotNetBridge
DO maximawebserviceproxy
loProxy = CREATEOBJECT("maximawebserviceProxy","V2")
? loProxy.Init("V2",.T.)
? loProxy.LOadservice("V2")
loProduto2 = loProxy.listarproduto("9d777a6f-5311-4c50-89e5-e091d8c89399","123456")
? loProduto2.InfoRetorno